I`m using colab offline on Windows.
To solve this task i used:
from pathlib import Path Win_base_dir = Path("./").resolve()
It works online also. So, try it.