include the blendfile name when executing python scripts, so when using libraries you can tell where the script is stored which raises an error.

This commit is contained in:
2010-06-02 14:40:58 +00:00
parent ad25ac9e9b
commit b1a96f76dc
3 changed files with 22 additions and 5 deletions

View File

@@ -50,6 +50,9 @@ PyObject* bpy_text_import( struct Text *text );
PyObject* bpy_text_import_name( char *name, int *found );
PyObject* bpy_text_reimport( PyObject *module, int *found );
/* void bpy_text_clear_modules( int clear_all );*/ /* Clear user modules */
void bpy_text_filename_get(char *fn, struct Text *text);
extern PyMethodDef bpy_import_meth[];
extern PyMethodDef bpy_reload_meth[];