Skip to content

Commit

Permalink
debugger.py -> abspath to absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
jdegenstein authored Aug 22, 2024
1 parent 5d8f651 commit 9579757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cq_editor/widgets/debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def compile_code(self, cq_script):
def _exec(self, code, locals_dict, globals_dict):
with ExitStack() as stack:
fname = self.parent().components["editor"].filename
p = Path(fname if fname else "").abspath().dirname()
p = Path(fname if fname else "").absolute().dirname()

if self.preferences["Add script dir to path"] and p.exists():
sys.path.insert(0, p)
Expand Down

0 comments on commit 9579757

Please sign in to comment.