We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3d7d82 commit 431d242Copy full SHA for 431d242
pytheus/main.py
@@ -410,10 +410,10 @@ def read_config(is_example, filename):
410
if is_example:
411
examples_dir = pkg_resources.resource_filename(pytheus.__name__, "graphs")
412
for root, subdirs, files in os.walk(examples_dir):
413
- if root.split('/')[-1] == filename:
+ if os.path.basename(os.path.normpath(root)) == filename:
414
for file in files:
415
if file.startswith('config'):
416
- filename = root+'/'+file
+ filename = os.path.join(root, file)
417
break
418
419
# check if filename ends in json, add extension if needed
0 commit comments