QtHelpGenerator: fixed an issue related to the removed Utilities.relpath() function. maintenance

Sun, 17 Jan 2021 13:53:08 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 17 Jan 2021 13:53:08 +0100
branch
maintenance
changeset 7991
866adc8c315b
parent 7968
e3d251e74f2d
child 8043
0acf98cd089a

QtHelpGenerator: fixed an issue related to the removed Utilities.relpath() function.

eric6/DocumentationTools/QtHelpGenerator.py file | annotate | diff | comparison | revisions
--- a/eric6/DocumentationTools/QtHelpGenerator.py	Mon Jan 11 19:31:21 2021 +0100
+++ b/eric6/DocumentationTools/QtHelpGenerator.py	Sun Jan 17 13:53:08 2021 +0100
@@ -14,7 +14,7 @@
 import subprocess           # secok
 
 from Utilities import (
-    joinext, relpath, html_encode, getQtBinariesPath, generateQtToolName
+    joinext, html_encode, getQtBinariesPath, generateQtToolName
 )
 
 HelpCollection = r"""<?xml version="1.0" encoding="utf-8" ?>
@@ -85,7 +85,7 @@
         self.filterAttributes = (
             filterAttributes and filterAttributes.split(':') or []
         )
-        self.relPath = relpath(self.htmlDir, self.outputDir)
+        self.relPath = os.path.relpath(self.htmlDir, self.outputDir)
         self.title = title
         self.createCollection = createCollection
         

eric ide

mercurial