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

Delta Between Two Patch Sets: sitescripts/cms/bin/runserver.py

Issue 5395911630913536: Added PyInstaller spec to create stand-alone CMS builds (Closed)
Left Patch Set: Created Dec. 12, 2013, 11:17 a.m.
Right Patch Set: Created Dec. 16, 2013, 1:03 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « .hgignore ('k') | sitescripts/cms/runserver.spec » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # This is a stub script loading test_server module, used by PyInstaller. 2 # This is a stub script loading test_server module, used by PyInstaller.
3 3
4 import runpy, sys 4 import runpy, sys, os
5 5
6 # Make sure hidden imports are found 6 # Make sure hidden imports are found
7 import sitescripts.cms.bin.test_server 7 import sitescripts.cms.bin.test_server
8 import markdown.extensions.attr_list 8 import markdown.extensions.attr_list
9 9
10 sys.argv[1:] = ["."] 10 sys.argv[1:] = [os.curdir]
Sebastian Noack 2013/12/12 12:59:00 I would prefer to use os.curdir here.
11 runpy.run_module("sitescripts.cms.bin.test_server", run_name="__main__") 11 runpy.run_module("sitescripts.cms.bin.test_server", run_name="__main__")
LEFTRIGHT

Powered by Google App Engine
This is Rietveld