diff options
author | Ian Bicking <ian@ianbicking.org> | 2005-09-12 20:20:21 +0000 |
---|---|---|
committer | Ian Bicking <ian@ianbicking.org> | 2005-09-12 20:20:21 +0000 |
commit | 4a16df789ec9be718996e9a3d54e50860012ff6b (patch) | |
tree | 09e330110014d222616e4f4694834ae1aef24051 | |
parent | d271dafd29d8991ae588c930f54c25354620c48c (diff) | |
download | paste-git-4a16df789ec9be718996e9a3d54e50860012ff6b.tar.gz |
Find packages even when some directories are relative
-rw-r--r-- | paste/util/findpackage.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/paste/util/findpackage.py b/paste/util/findpackage.py index 1d12c58..68b5e8b 100644 --- a/paste/util/findpackage.py +++ b/paste/util/findpackage.py @@ -9,8 +9,9 @@ def find_package(dir): 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: |