PreviewerHTML: changed the determination of the root path for the editor to be previewed. eric7

Mon, 13 Sep 2021 19:22:16 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 13 Sep 2021 19:22:16 +0200
branch
eric7
changeset 8600
f95586787d90
parent 8599
057b32c17d3a
child 8601
018c48d7ae3c

PreviewerHTML: changed the determination of the root path for the editor to be previewed.

eric7/UI/Previewers/PreviewerHTML.py file | annotate | diff | comparison | revisions
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 = ""
             

eric ide

mercurial