Index: runserver.py |
=================================================================== |
--- a/runserver.py |
+++ b/runserver.py |
@@ -2,10 +2,11 @@ |
# This is a stub script loading test_server module, used by PyInstaller. |
import runpy, sys, os |
# Make sure hidden imports are found |
import cms.bin.test_server |
import markdown.extensions.attr_list |
-sys.argv[1:] = [os.curdir] |
+if len(sys.argv) < 2: |
+ sys.argv.append(os.curdir) |
runpy.run_module("cms.bin.test_server", run_name="__main__") |