Commits

Anonymous committed 1066f8f

rope-open-project: opening the project directly from lisp

Patch from Shalabh Chaturvedi.

  • Participants
  • Parent commits 5923886

Comments (0)

Files changed (1)

ropemacs/interface.py

             lisp.remove_hook(lisp[hook], lisp[function])
 
     @global_command('o')
-    def open_project(self):
-        root = lisputils.ask_directory('Rope project root folder: ')
+    def open_project(self, root=None):
+        if not root:
+            root = lisputils.ask_directory('Rope project root folder: ')
         if self.project is not None:
             self.close_project()
         progress = lisputils.create_progress('Opening "%s" project' % root)