From fa351d45a6e347ff8a7383e5f1f03699b7352b76 Mon Sep 17 00:00:00 2001 From: jlgijsbers Date: Thu, 6 Nov 2003 14:24:57 +0000 Subject: [PATCH] Don't let roundup_server.run() interpret the command-line arguments, it causes an error when doing 'demo.py nuke'. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1971 57a73879-2fb5-44c3-a270-3262357dd7e2 --- demo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/demo.py b/demo.py index bf288e2..2a5c957 100644 --- a/demo.py +++ b/demo.py @@ -2,7 +2,7 @@ # # Copyright (c) 2003 Richard Jones (richard@mechanicalcat.net) # -# $Id: demo.py,v 1.6 2003-10-25 11:41:06 jlgijsbers Exp $ +# $Id: demo.py,v 1.7 2003-11-06 14:24:57 jlgijsbers Exp $ import sys, os, string, re, urlparse import shutil, socket, errno, BaseHTTPServer @@ -91,6 +91,7 @@ def run_demo(): 3. Re-start the server by running "python demo.py" again. 4. Re-initialise the server by running "python demo.py nuke".''' % url + sys.argv = sys.argv[:1] roundup_server.run(port, success_message) if __name__ == '__main__': -- 2.30.2