Commits

Anonymous committed 7aec5eb

transform needs project only in path_to_resource

Comments (0)

Files changed (1)

rope/base/oi/transform.py

 import re
 
 import rope.base.builtins
-import rope.base.project
 from rope.base import exceptions
 
 
             if path.startswith(root):
                 # INFO: This is a project file; should not be absolute
                 return None
+            import rope.base.project
             return rope.base.project.get_no_project().get_resource(path)
         except exceptions.ResourceNotFoundError:
             return None