diff options
author | ianb <devnull@localhost> | 2008-04-09 17:01:24 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2008-04-09 17:01:24 +0000 |
commit | 7bf252ce23dde542d0405f171ddd6e8f19dacd66 (patch) | |
tree | 178b34d6c112e848010a033c2f633c465cc14fc8 /paste/__init__.py | |
parent | 6a1505e74d2f52ae89347eb8f1a8ec78ab825c93 (diff) | |
download | paste-7bf252ce23dde542d0405f171ddd6e8f19dacd66.tar.gz |
Make modulefinder import conditional
Diffstat (limited to 'paste/__init__.py')
-rw-r--r-- | paste/__init__.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/paste/__init__.py b/paste/__init__.py index 7994613..ba66606 100644 --- a/paste/__init__.py +++ b/paste/__init__.py @@ -8,6 +8,10 @@ except ImportError: from pkgutil import extend_path __path__ = extend_path(__path__, __name__) -import modulefinder -for p in __path__: - modulefinder.AddPackagePath(__name__, p) +try: + import modulefinder +except ImportError: + pass +else: + for p in __path__: + modulefinder.AddPackagePath(__name__, p) |