Commit 28eefda7 authored by Jim Fulton's avatar Jim Fulton

Added logic to arrange ZopeHTTPServer arguments properly.

parent 6820e9ce
......@@ -87,7 +87,14 @@
import ZopeHTTPServer, os, sys
args=sys.argv[1:]+[os.path.join(os.getcwd(),'lib','python','Main.py')]
args=sys.argv[1:]
m=os.path.join(os.getcwd(),'lib','python','Main.py')
for i in range(len(args)):
if args[i][:1] != '-':
args.insert(i,m)
m=''
break
if m: args.append(m)
ZopeHTTPServer.main(args)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment