eric7/UI/Previewers/PreviewerHTML.py

branch
eric7
changeset 8600
f95586787d90
parent 8358
144a6b854f70
child 8617
3ea0b67205b6
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