Commits

Ali Gholami Rudi  committed 1fdce38

ropemacs: if a project is open close it when opening a project

  • Participants
  • Parent commits c15a7bb
  • Branches default

Comments (0)

Files changed (1)

File rope/contrib/ropemacs.py

 
     @interaction('DProject Root Folder: ')
     def set_project(self, root):
+        if self.project is not None:
+            self.close_project()
         self.project = project.Project(root)
 
     @interaction()
-    def close_project(self, root):
+    def close_project(self):
         self.project.close()
 
     @interaction('sNew Name: ')