Commits

Ali Gholami Rudi  committed ea9afda

libutils: fixed get resource on windows

  • Participants
  • Parent commits 110aba3

Comments (0)

Files changed (1)

File rope/base/libutils.py

     """
     path = rope.base.project._realpath(path)
     project_path = path
-    if path == project.address or path.startswith(project.address + '/'):
+    if path == project.address or path.startswith(project.address + os.sep):
         project_path = path[len(project.address):].lstrip('/' + os.sep)
     else:
         project = rope.base.project.get_no_project()