mirror of
https://github.com/jdegenstein/jmwright-CQ-Editor.git
synced 2025-12-19 14:14:13 +01:00
editor.py -> abspath to absolute
This commit is contained in:
@@ -148,7 +148,7 @@ class Editor(CodeEditor,ComponentMixin):
|
|||||||
|
|
||||||
if not self.confirm_discard(): return
|
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)
|
fname = get_open_filename(self.EXTENSIONS, curr_dir)
|
||||||
if fname != '':
|
if fname != '':
|
||||||
self.load_from_file(fname)
|
self.load_from_file(fname)
|
||||||
|
|||||||
Reference in New Issue
Block a user