2.5 / SCons
Make sure we can build WITH_BF_PYTHON=False
This commit is contained in:
@@ -8,5 +8,9 @@ incs += ' ../../windowmanager #/intern/guardedalloc #/extern/glew/include'
|
||||
incs += ' ../../makesrna'
|
||||
incs += ' ../../python'
|
||||
|
||||
defs = []
|
||||
|
||||
env.BlenderLib ( 'bf_editors_space_script', sources, Split(incs), [], libtype=['core'], priority=[90] )
|
||||
if not env['WITH_BF_PYTHON']:
|
||||
defs.append('DISABLE_PYTHON')
|
||||
|
||||
env.BlenderLib ( 'bf_editors_space_script', sources, Split(incs), defs, libtype=['core'], priority=[90] )
|
||||
|
||||
@@ -61,14 +61,13 @@
|
||||
|
||||
static int run_pyfile_exec(bContext *C, wmOperator *op)
|
||||
{
|
||||
ScrArea *sa= CTX_wm_area(C);
|
||||
ARegion *ar= CTX_wm_region(C);
|
||||
|
||||
char filename[512];
|
||||
RNA_string_get(op->ptr, "filename", filename);
|
||||
|
||||
#ifndef DISABLE_PYTHON
|
||||
BPY_run_python_script(C, filename);
|
||||
|
||||
#endif
|
||||
ED_region_tag_redraw(ar);
|
||||
|
||||
return OPERATOR_FINISHED;
|
||||
|
||||
Reference in New Issue
Block a user