error in last commit

This commit is contained in:
2010-06-02 19:37:53 +00:00
parent 89320c911e
commit cb26b4d7b9

View File

@@ -350,9 +350,10 @@ int BPY_run_python_script( bContext *C, const char *fn, struct Text *text, struc
}
else {
FILE *fp= fopen(fn, "r");
py_dict = CreateGlobalDictionary(C, fn);
FILE *fp= fopen(fn, "r");
if(fp) {
#ifdef _WIN32
/* Previously we used PyRun_File to run directly the code on a FILE