Commits

Anonymous committed 60238d6

Find packages even when some directories are relative

  • Participants
  • Parent commits 5b62f9f
  • Branches mainline-refactor

Comments (0)

Files changed (1)

paste/util/findpackage.py

     Given a directory, finds the equivalent package name.  If it
     is directly in sys.path, returns ''.
     """
+    dir = os.path.abspath(dir)
     orig_dir = dir
-    path = sys.path
+    path = map(os.path.abspath, sys.path)
     packages = []
     last_dir = None
     while 1: