error in last commit
This commit is contained in:
@@ -350,9 +350,10 @@ int BPY_run_python_script( bContext *C, const char *fn, struct Text *text, struc
|
|||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
FILE *fp= fopen(fn, "r");
|
||||||
|
|
||||||
py_dict = CreateGlobalDictionary(C, fn);
|
py_dict = CreateGlobalDictionary(C, fn);
|
||||||
|
|
||||||
FILE *fp= fopen(fn, "r");
|
|
||||||
if(fp) {
|
if(fp) {
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
/* Previously we used PyRun_File to run directly the code on a FILE
|
/* Previously we used PyRun_File to run directly the code on a FILE
|
||||||
|
|||||||
Reference in New Issue
Block a user