Commits

Anonymous committed 074f7b4

autoimport: added rope-generate-autoimport-cache command

  • Participants
  • Parent commits 9e0945b

Comments (0)

Files changed (1)

File ropemacs/interface.py

         else:
             lisputils.message('Not found!')
 
+    @interactive
+    def generate_autoimport_cache(self):
+        if not self._check_autoimport():
+            return
+        for file in self.project.pycore.get_python_files():
+            self.autoimport.update_resource(file)
+
     def _insert_import(self, name, module):
         current = lisp.point()
         lisp.goto_char(0)