Skip to content

Commit 431d242

Browse files
committed
fixing paths for windows
1 parent c3d7d82 commit 431d242

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytheus/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,10 +410,10 @@ def read_config(is_example, filename):
410410
if is_example:
411411
examples_dir = pkg_resources.resource_filename(pytheus.__name__, "graphs")
412412
for root, subdirs, files in os.walk(examples_dir):
413-
if root.split('/')[-1] == filename:
413+
if os.path.basename(os.path.normpath(root)) == filename:
414414
for file in files:
415415
if file.startswith('config'):
416-
filename = root+'/'+file
416+
filename = os.path.join(root, file)
417417
break
418418

419419
# check if filename ends in json, add extension if needed

0 commit comments

Comments
 (0)