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)