Mon, 13 Sep 2021 19:22:16 +0200
PreviewerHTML: changed the determination of the root path for the editor to be previewed.
eric7/UI/Previewers/PreviewerHTML.py | file | annotate | diff | comparison | revisions |
--- a/eric7/UI/Previewers/PreviewerHTML.py Mon Sep 13 18:27:34 2021 +0200 +++ b/eric7/UI/Previewers/PreviewerHTML.py Mon Sep 13 19:22:16 2021 +0200 @@ -200,11 +200,7 @@ return if fn: - project = ericApp().getObject("Project") - if project.isProjectFile(fn): - rootPath = project.getProjectPath() - else: - rootPath = os.path.dirname(os.path.abspath(fn)) + rootPath = os.path.dirname(os.path.abspath(fn)) else: rootPath = ""