summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorianb <devnull@localhost>2006-11-06 19:11:13 +0000
committerianb <devnull@localhost>2006-11-06 19:11:13 +0000
commitd1c8512eb1fcf0e050cd0332477ae184e9215e0e (patch)
tree3c30838ac77610bd00241af026eff40542334e38
parent0bccb82337e0707a7e629564fed8941c3d69bbe3 (diff)
downloadpaste-d1c8512eb1fcf0e050cd0332477ae184e9215e0e.tar.gz
Added modulefinder declaration, per Brad Clement's request
-rw-r--r--docs/news.txt3
-rw-r--r--paste/__init__.py4
2 files changed, 7 insertions, 0 deletions
diff --git a/docs/news.txt b/docs/news.txt
index 2b87a5e..e9f46b0 100644
--- a/docs/news.txt
+++ b/docs/news.txt
@@ -15,6 +15,9 @@ svn trunk
relative links that are completely empty should but were not
preserving the query string)
+* Made ``paste.*`` compatible with `py2exe <http://www.py2exe.org/>`_
+ by adding a ``modulefinder`` call in ``__init__.py``
+
1.0
---
diff --git a/paste/__init__.py b/paste/__init__.py
index fbf3130..7994613 100644
--- a/paste/__init__.py
+++ b/paste/__init__.py
@@ -7,3 +7,7 @@ except ImportError:
# don't prevent use of paste if pkg_resources isn't installed
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
+
+import modulefinder
+for p in __path__:
+ modulefinder.AddPackagePath(__name__, p)