diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2008-12-07 13:55:33 +0300 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2008-12-07 13:55:33 +0300 |
commit | efdb726cf34b709148e72b5a29dfe8e500a7bb8d (patch) | |
tree | 104f290ef0b964dfc9cf879483ce7f4fa1423be7 | |
parent | b7fc71a3e2d60b4d1c819199d023bce6ae95482c (diff) |
* put the PyRNA testing bit inside the DISABLE_PYTHON define, so we can use blenderlite as target too
-rw-r--r-- | source/creator/creator.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c index 8cce54c07e2..b9f7ffed198 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -668,13 +668,13 @@ int main(int argc, char **argv) } break; case 'P': -//XXX -#if 1 - // FOR TESTING ONLY - a++; - BPY_run_python_script (argv[a]); -#else + #ifndef DISABLE_PYTHON + //XXX + // FOR TESTING ONLY + a++; + BPY_run_python_script (argv[a]); +#if 0 a++; if (a < argc) { /* 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]); } else printf("\nError: you must specify a Python script after '-P '.\n"); +#endif #else printf("This blender was built without python support\n"); #endif /* DISABLE_PYTHON */ -#endif break; case 'o': a++; |