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

Unified Diff: sitescripts/cms/bin/runserver.py

Issue 5395911630913536: Added PyInstaller spec to create stand-alone CMS builds (Closed)
Patch Set: Created Dec. 12, 2013, 11:17 a.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
Index: sitescripts/cms/bin/runserver.py
===================================================================
new file mode 100755
--- /dev/null
+++ b/sitescripts/cms/bin/runserver.py
@@ -0,0 +1,11 @@
+#!/usr/bin/env python
+# This is a stub script loading test_server module, used by PyInstaller.
+
+import runpy, sys
+
+# Make sure hidden imports are found
+import sitescripts.cms.bin.test_server
+import markdown.extensions.attr_list
+
+sys.argv[1:] = ["."]
Sebastian Noack 2013/12/12 12:59:00 I would prefer to use os.curdir here.
+runpy.run_module("sitescripts.cms.bin.test_server", run_name="__main__")
« no previous file with comments | « .hgignore ('k') | sitescripts/cms/runserver.spec » ('j') | sitescripts/cms/runserver.spec » ('J')

Powered by Google App Engine
This is Rietveld