File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ def openBrowser():
53
53
del environ ['WEBWARE_DEVELOPMENT' ]
54
54
try :
55
55
# get application from WSGI script
56
- with open ('Scripts/WSGIScript.py' ) as f :
56
+ with open (args . wsgi_script ) as f :
57
57
script = f .read ()
58
58
# set development flag in the script
59
59
script = script .replace (
@@ -70,7 +70,7 @@ def openBrowser():
70
70
71
71
print ("Waitress serving Webware application..." )
72
72
args = vars (args )
73
- for arg in 'browser reload reload_interval prod' .split ():
73
+ for arg in 'browser reload reload_interval prod wsgi_script ' .split ():
74
74
del args [arg ]
75
75
if args ['trusted_proxy_headers' ]:
76
76
args ['trusted_proxy_headers' ] = args [
@@ -150,6 +150,11 @@ def addArguments(parser):
150
150
help = "Do not set development mode" ,
151
151
default = False ,
152
152
)
153
+ parser .add_argument (
154
+ '--wsgi-script' ,
155
+ help = 'The file path of the WSGI script' ,
156
+ default = 'Scripts/WSGIScript.py' ,
157
+ )
153
158
154
159
155
160
def main (args = None ):
You can’t perform that action at this time.
0 commit comments