diff -r 057b32c17d3a -r f95586787d90 eric7/UI/Previewers/PreviewerHTML.py --- 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 = ""