Fixed an issue causing the Imports diagram to fail on Windows systems.

Fri, 14 May 2010 17:23:52 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 14 May 2010 17:23:52 +0200
changeset 247
b3da30a52337
parent 246
121d83ba74d5
child 248
f4561c24989a

Fixed an issue causing the Imports diagram to fail on Windows systems.

Graphics/ImportsDiagram.py file | annotate | diff | comparison | revisions
--- a/Graphics/ImportsDiagram.py	Fri May 14 12:33:34 2010 +0200
+++ b/Graphics/ImportsDiagram.py	Fri May 14 17:23:52 2010 +0200
@@ -41,7 +41,7 @@
         """
         self.showExternalImports = showExternalImports
         self.packagePath = Utilities.normabspath(package)
-        self.package = self.packagePath.replace(os.sep, '.')[1:]
+        self.package = os.path.splitdrive(self.packagePath)[1].replace(os.sep, '.')[1:]
         hasInit = True
         ppath = self.packagePath
         while hasInit:

eric ide

mercurial