eric7/UI/Previewers/PreviewerHTML.py

branch
eric7
changeset 8600
f95586787d90
parent 8358
144a6b854f70
child 8617
3ea0b67205b6
equal deleted inserted replaced
8599:057b32c17d3a 8600:f95586787d90
198 self.__setHtml(fn, self.tr( 198 self.__setHtml(fn, self.tr(
199 "<p>No preview available for this type of file.</p>")) 199 "<p>No preview available for this type of file.</p>"))
200 return 200 return
201 201
202 if fn: 202 if fn:
203 project = ericApp().getObject("Project") 203 rootPath = os.path.dirname(os.path.abspath(fn))
204 if project.isProjectFile(fn):
205 rootPath = project.getProjectPath()
206 else:
207 rootPath = os.path.dirname(os.path.abspath(fn))
208 else: 204 else:
209 rootPath = "" 205 rootPath = ""
210 206
211 if bool(editor.text()): 207 if bool(editor.text()):
212 self.__processingThread.process( 208 self.__processingThread.process(

eric ide

mercurial