OLD | NEW |
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, os | 4 import runpy, sys, os |
5 | 5 |
6 # Make sure hidden imports are found | 6 # Make sure hidden imports are found |
7 import cms.bin.test_server | 7 import cms.bin.test_server |
8 import markdown.extensions.attr_list | 8 import markdown.extensions.attr_list |
9 | 9 |
10 sys.argv[1:] = [os.curdir] | 10 if len(sys.argv) < 2: |
| 11 sys.argv.append(os.curdir) |
11 runpy.run_module("cms.bin.test_server", run_name="__main__") | 12 runpy.run_module("cms.bin.test_server", run_name="__main__") |
OLD | NEW |