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:
		@@ -119,6 +119,8 @@ void BLI_del_slash(char *string) {
 | 
				
			|||||||
#endif
 | 
					#endif
 | 
				
			||||||
			string[len-1] = '\0';
 | 
								string[len-1] = '\0';
 | 
				
			||||||
			len--;
 | 
								len--;
 | 
				
			||||||
 | 
							} else {
 | 
				
			||||||
 | 
								break;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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 {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user