diff options
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: |