# HG changeset patch # User paulb # Date 1124920204 0 # Node ID 29eb6eb6e3490d2e8a866c0c1df970ac77f97def # Parent 2077d247b9a5b78e7351559b057594372fc91ba7 [project @ 2005-08-24 21:50:04 by paulb] Fixed the PYTHONPATH in cases where none was previously set. diff -r 2077d247b9a5 -r 29eb6eb6e349 tools/demo.py --- a/tools/demo.py Thu Aug 18 21:18:55 2005 +0000 +++ b/tools/demo.py Wed Aug 24 21:50:04 2005 +0000 @@ -17,6 +17,8 @@ pythonpath = os.environ.get("PYTHONPATH") if pythonpath: pythonpath = pythonpath + os.pathsep +else: + pythonpath = "" os.environ["PYTHONPATH"] = "%s%s%s%s" % (pythonpath, base, os.pathsep, os.path.join(base, "examples", "Common")) os.system("%s %s" % (sys.executable, os.path.join(base, "examples", "BaseHTTPRequestHandler", "DemoApp.py")))