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:
Campbell Barton 2008-02-27 10:02:40 +00:00
parent b226eb925b
commit 086e8b9b8f
2 changed files with 3 additions and 1 deletions

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

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