diff options
author | Luke Macken <lmacken@redhat.com> | 2008-03-10 18:42:35 -0400 |
---|---|---|
committer | Luke Macken <lmacken@redhat.com> | 2008-03-10 18:42:35 -0400 |
commit | 392e1b9ee3480c5f68b7ffc86181a79dab4ac6c4 (patch) | |
tree | a789d98fdc53f97abb26fa351ade6f319457b692 /funcweb | |
parent | be592ed5acfc374843c407018747cade0783d8ef (diff) | |
download | third_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-x | funcweb/start-funcweb.py | 6 |
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: |