Closed lkorczowski closed 4 years ago
Remember that linux and Mac use "/" has file separator while Windows use "\".
The pythonic way to split a folder path is therefore to use path.split(os.path.sep)instead of path.split("\\")
path.split(os.path.sep)
path.split("\\")
if you are tired to right the entire os.path.sep you can do : from os.path import sep
os.path.sep
from os.path import sep
and use path.split(sep)
path.split(sep)
The lines has been replaced in #50
Closing
Remember that linux and Mac use "/" has file separator while Windows use "\".
The pythonic way to split a folder path is therefore to use
path.split(os.path.sep)
instead ofpath.split("\\")
if you are tired to right the entire
os.path.sep
you can do :from os.path import sep
and use
path.split(sep)