Commits

Alexander Solovyov  committed ca136d4

fixed import circle

  • Participants
  • Parent commits 92aa3fc

Comments (0)

Files changed (2)

File rope/base/project.py

 
 import rope.base.change
 import rope.base.fscommands
-import rope.base.pycore
 import rope.base.resourceobserver
-from rope.base import exceptions, taskhandle, prefs, history
+from rope.base import exceptions, taskhandle, prefs, history, pycore
 from rope.base.resources import File, Folder
 from rope.base.resourceobserver import *
 
 
     def get_pycore(self):
         if self._pycore is None:
-            self._pycore = rope.base.pycore.PyCore(self)
+            self._pycore = pycore.PyCore(self)
         return self._pycore
 
     def get_file(self, path):

File rope/base/pycore.py

 import rope.base.oi.dynamicoi
 import rope.base.oi.objectinfo
 import rope.base.oi.staticoi
-import rope.base.project
 from rope.base import ast, exceptions, taskhandle
 from rope.base.exceptions import ModuleNotFoundError
 from rope.base.pyobjectsdef import PyModule, PyPackage, PyClass
         return None
 
     def get_python_path_folders(self):
+        import rope.base.project
         result = []
         for src in sys.path + self.project.prefs.get('python_path', []):
             try: