From 5d8f651f9703672818bb33683520fdf6af55660f Mon Sep 17 00:00:00 2001 From: jdegenstein Date: Thu, 22 Aug 2024 12:34:12 -0500 Subject: [PATCH] widgets/editor.py -> abspath to absolute --- cq_editor/widgets/editor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cq_editor/widgets/editor.py b/cq_editor/widgets/editor.py index 128891b..62df6e7 100644 --- a/cq_editor/widgets/editor.py +++ b/cq_editor/widgets/editor.py @@ -147,7 +147,7 @@ class Editor(CodeEditor,ComponentMixin): if not self.confirm_discard(): return - curr_dir = Path(self.filename).abspath().dirname() + curr_dir = Path(self.filename).absolute().dirname() fname = get_open_filename(self.EXTENSIONS, curr_dir) if fname != '': self.load_from_file(fname)