lkorczowski / Tinnitus-n-Sleep

Detecting events in sleeping tinnitus patients
MIT License
1 stars 0 forks source link

use os.path.sep instead of "\\" #52

Closed lkorczowski closed 4 years ago

lkorczowski commented 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("\\")

if you are tired to right the entire os.path.sep you can do : from os.path import sep

and use path.split(sep)

lkorczowski commented 4 years ago

The lines has been replaced in #50

Closing