diff options
| author | ianb <devnull@localhost> | 2005-12-09 22:01:11 +0000 |
|---|---|---|
| committer | ianb <devnull@localhost> | 2005-12-09 22:01:11 +0000 |
| commit | a42ce5ffc86e3bd23bfab76f1ab22f9f5c67a3f2 (patch) | |
| tree | 08ac36b387da1142335eeeced5f2a48d358d8ece /paste/util/finddata.py | |
| parent | 583c265e4c8843c587e979951775e8e7e16f60c9 (diff) | |
| download | paste-a42ce5ffc86e3bd23bfab76f1ab22f9f5c67a3f2.tar.gz | |
But with package data subdirectories that contain __init__.py but aren't actually contained in packages (likely with create templates); from Ben Bangert
Diffstat (limited to 'paste/util/finddata.py')
| -rw-r--r-- | paste/util/finddata.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/paste/util/finddata.py b/paste/util/finddata.py index d12406e..e05ea4a 100644 --- a/paste/util/finddata.py +++ b/paste/util/finddata.py @@ -65,7 +65,8 @@ def find_package_data( break if bad_name: continue - if os.path.isfile(os.path.join(fn, '__init__.py')): + if (os.path.isfile(os.path.join(fn, '__init__.py')) + and not prefix): if not package: new_package = name else: |
