Plugins/PluginTabnanny.py

changeset 571
1a4101cb87eb
parent 564
b3d966393ba9
child 791
9ec2ac20e54e
--- a/Plugins/PluginTabnanny.py	Sun Sep 05 17:47:33 2010 +0200
+++ b/Plugins/PluginTabnanny.py	Sun Sep 05 18:34:37 2010 +0200
@@ -176,13 +176,14 @@
         """
         project = e5App().getObject("Project")
         project.saveAllScripts()
-        files = [os.path.join(project.ppath, file) \
+        ppath = project.getProjectPath()
+        files = [os.path.join(ppath, file) \
             for file in project.pdata["SOURCES"] \
                 if file.endswith(tuple(Preferences.getPython("Python3Extensions")))]
         
         self.__projectTabnannyDialog = TabnannyDialog()
         self.__projectTabnannyDialog.show()
-        self.__projectTabnannyDialog.start(files)
+        self.__projectTabnannyDialog.prepare(files, project)
     
     def __projectBrowserTabnanny(self):
         """
@@ -248,4 +249,4 @@
             
             self.__editorTabnannyDialog = TabnannyDialog()
             self.__editorTabnannyDialog.show()
-            self.__editorTabnannyDialog.start(editor.getFileName())
\ No newline at end of file
+            self.__editorTabnannyDialog.start(editor.getFileName())

eric ide

mercurial