summaryrefslogtreecommitdiffstats
path: root/funcweb
diff options
context:
space:
mode:
authorLuke Macken <lmacken@redhat.com>2008-03-10 18:42:35 -0400
committerLuke Macken <lmacken@redhat.com>2008-03-10 18:42:35 -0400
commit392e1b9ee3480c5f68b7ffc86181a79dab4ac6c4 (patch)
treea789d98fdc53f97abb26fa351ade6f319457b692 /funcweb
parentbe592ed5acfc374843c407018747cade0783d8ef (diff)
downloadthird_party-func-392e1b9ee3480c5f68b7ffc86181a79dab4ac6c4.tar.gz
third_party-func-392e1b9ee3480c5f68b7ffc86181a79dab4ac6c4.tar.xz
third_party-func-392e1b9ee3480c5f68b7ffc86181a79dab4ac6c4.zip
Make funcweb generate the egg-info when necessary.
Diffstat (limited to 'funcweb')
-rwxr-xr-xfuncweb/start-funcweb.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/funcweb/start-funcweb.py b/funcweb/start-funcweb.py
index 3d375a3..f7725c0 100755
--- a/funcweb/start-funcweb.py
+++ b/funcweb/start-funcweb.py
@@ -7,10 +7,16 @@ directory. When the project is installed, easy_install will create a
proper start script.
"""
+import os
import sys
from funcweb.commands import start, ConfigurationError
if __name__ == "__main__":
+ if not os.path.exists("funcweb.egg-info"):
+ argv = sys.argv
+ sys.argv = ["setup", "egg_info"]
+ import setup
+ sys.argv = argv
try:
start()
except ConfigurationError, exc: