From 392e1b9ee3480c5f68b7ffc86181a79dab4ac6c4 Mon Sep 17 00:00:00 2001 From: Luke Macken Date: Mon, 10 Mar 2008 18:42:35 -0400 Subject: Make funcweb generate the egg-info when necessary. --- funcweb/start-funcweb.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'funcweb') 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: -- cgit