Bugfix [#8328] Python scripts from user defined location doesn't load

http://projects.blender.org/tracker/index.php?func=detail&aid=8328&group_id=9&atid=125

last commit had mistakes but tested this to fix the bug.
- Cam
This commit is contained in:
2008-02-27 10:02:40 +00:00
parent b226eb925b
commit 086e8b9b8f
2 changed files with 3 additions and 1 deletions

View File

@@ -119,6 +119,8 @@ void BLI_del_slash(char *string) {
#endif #endif
string[len-1] = '\0'; string[len-1] = '\0';
len--; len--;
} else {
break;
} }
} }
} }

View File

@@ -938,7 +938,7 @@ static int bpymenu_GetStatMTime( const char *name, int is_file, time_t * mtime )
struct stat st; struct stat st;
int result; int result;
#ifdef win32 #ifdef WIN32
if (is_file) { if (is_file) {
result = stat( name, &st ); result = stat( name, &st );
} else { } else {