Skip to content

Commit 2650d7d

Browse files
committed
Use os.pathsep for splitting SPECTRAL_DATA directories.
1 parent 46440f3 commit 2650d7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spectral/io/spyfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ def find_file_path(filename):
128128
'''
129129
import os
130130
pathname = None
131-
dirs = ['.']
131+
dirs = [os.curdir]
132132
if 'SPECTRAL_DATA' in os.environ:
133-
dirs += os.environ['SPECTRAL_DATA'].split(':')
133+
dirs += os.environ['SPECTRAL_DATA'].split(os.pathsep)
134134
for d in dirs:
135135
testpath = os.path.join(d, filename)
136136
if os.path.isfile(testpath):

0 commit comments

Comments
 (0)