Merged changes from trunk to soc-2008-mxcurioni: svn merge -r 14534:14595 https:...
[blender.git] / source / blender / python / BPY_interface.c
index 9bdb4425766f552151667c7a095616954ac26444..7cfb30cbc07c7fe3575db946d6dd889beea15b98 100644 (file)
@@ -786,7 +786,7 @@ int BPY_run_script(Script *script)
                
                if (bpyhome) {
                        BLI_strncpy(ftmp, script->scriptname, sizeof(ftmp));
-                       BLI_split_dirfile(ftmp, fpath, fname); /* get the filename only - fname */
+                       BLI_split_dirfile_basic(ftmp, NULL, fname); /* get the filename only - fname */
                        BLI_strncpy(fpath, bpy_gethome(1), sizeof(fpath));
                        BLI_add_slash(fpath);
                        strcat(fpath, fname);