Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: runserver.py

Issue 5718243582935040: Issue 2127 - Adapt README.md for cms repository (Closed)
Patch Set: Created March 11, 2015, 9:24 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« README.md ('K') | « README.md ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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__")
« README.md ('K') | « README.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld