* put the PyRNA testing bit inside the DISABLE_PYTHON define, so we can use blenderlite as target too

This commit is contained in:
Nathan Letwory
2008-12-07 10:55:33 +00:00
parent b7fc71a3e2
commit efdb726cf3

View File

@@ -668,13 +668,13 @@ int main(int argc, char **argv)
} }
break; break;
case 'P': case 'P':
//XXX
#if 1
// FOR TESTING ONLY
a++;
BPY_run_python_script (argv[a]);
#else
#ifndef DISABLE_PYTHON #ifndef DISABLE_PYTHON
//XXX
// FOR TESTING ONLY
a++;
BPY_run_python_script (argv[a]);
#if 0
a++; a++;
if (a < argc) { if (a < argc) {
/* If we're not running in background mode, then give python a valid screen */ /* If we're not running in background mode, then give python a valid screen */
@@ -685,10 +685,10 @@ int main(int argc, char **argv)
BPY_run_python_script (argv[a]); BPY_run_python_script (argv[a]);
} }
else printf("\nError: you must specify a Python script after '-P '.\n"); else printf("\nError: you must specify a Python script after '-P '.\n");
#endif
#else #else
printf("This blender was built without python support\n"); printf("This blender was built without python support\n");
#endif /* DISABLE_PYTHON */ #endif /* DISABLE_PYTHON */
#endif
break; break;
case 'o': case 'o':
a++; a++;