File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
pandatool/src/deploy-stub Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -400,8 +400,10 @@ int Py_FrozenMain(int argc, char **argv)
400
400
{
401
401
char * p ;
402
402
int n , sts = 1 ;
403
- int inspect = 0 ;
404
403
int unbuffered = 0 ;
404
+ #ifndef NDEBUG
405
+ int inspect = 0 ;
406
+ #endif
405
407
406
408
#if PY_MAJOR_VERSION >= 3 && !defined(WIN_UNICODE )
407
409
int i ;
@@ -433,8 +435,10 @@ int Py_FrozenMain(int argc, char **argv)
433
435
Py_NoSiteFlag = 0 ;
434
436
Py_NoUserSiteDirectory = 1 ;
435
437
438
+ #ifndef NDEBUG
436
439
if ((p = Py_GETENV ("PYTHONINSPECT" )) && * p != '\0' )
437
440
inspect = 1 ;
441
+ #endif
438
442
if ((p = Py_GETENV ("PYTHONUNBUFFERED" )) && * p != '\0' )
439
443
unbuffered = 1 ;
440
444
@@ -603,8 +607,10 @@ int Py_FrozenMain(int argc, char **argv)
603
607
else
604
608
sts = 0 ;
605
609
610
+ #ifndef NDEBUG
606
611
if (inspect && isatty ((int )fileno (stdin )))
607
612
sts = PyRun_AnyFile (stdin , "<stdin>" ) != 0 ;
613
+ #endif
608
614
609
615
#ifdef MS_WINDOWS
610
616
PyWinFreeze_ExeTerm ();
You can’t perform that action at this time.
0 commit comments