Skip to content

Commit

Permalink
platform dependent sep char
Browse files Browse the repository at this point in the history
  • Loading branch information
gbarter committed Jan 29, 2025
1 parent 61de85a commit 6550f0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pCrunch/test/test_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ def execute_script(fscript):
print("NOW RUNNING:", fscript)
print()
fullpath = os.path.join(examples_dir, fscript)
basepath = os.path.join(examples_dir, str(fscript).split("/")[0])
basepath = os.path.join(examples_dir, str(fscript).split(os.sep)[0])
os.chdir(basepath)

# Get script/module name
froot = str(fscript).split("/")[-1]
froot = str(fscript).split(os.sep)[-1]

# Use dynamic import capabilities
# https://www.blog.pythonlibrary.org/2016/05/27/python-201-an-intro-to-importlib/
Expand Down

0 comments on commit 6550f0d

Please sign in to comment.