projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cb860f
)
fixes and cleanups in __Pyx_main()
author
Lisandro Dalcin
<dalcinl@gmail.com>
Fri, 25 Feb 2011 16:13:37 +0000
(13:13 -0300)
committer
Lisandro Dalcin
<dalcinl@gmail.com>
Fri, 25 Feb 2011 16:13:37 +0000
(13:13 -0300)
Cython/Compiler/ModuleNode.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ModuleNode.py
b/Cython/Compiler/ModuleNode.py
index 72d1074bc29a89ebcdac7b0dfaa99448ae0258e3..a66d43b70413f3b5730a9c75803fabdd10ecacc4 100644
(file)
--- a/
Cython/Compiler/ModuleNode.py
+++ b/
Cython/Compiler/ModuleNode.py
@@
-2678,7
+2678,8
@@
static int __Pyx_main(int argc, wchar_t **argv) {
if (argc && argv)
Py_SetProgramName(argv[0]);
Py_Initialize();
- PySys_SetArgv(argc, argv);
+ if (argc && argv)
+ PySys_SetArgv(argc, argv);
{ /* init module '%(module_name)s' as '__main__' */
PyObject* m = NULL;
%(module_is_main)s = 1;