Changeset View
Changeset View
Standalone View
Standalone View
netrender/utils.py
| Context not available. | |||||
| def createLocalPath(rfile, prefixdirectory, prefixpath, forcelocal): | def createLocalPath(rfile, prefixdirectory, prefixpath, forcelocal): | ||||
| filepath = rfile.original_path | filepath = rfile.original_path | ||||
| prefixpath = os.path.normpath(prefixpath) if prefixpath else None | prefixpath = os.path.normpath(prefixpath) if prefixpath else None | ||||
| if (os.path.isabs(filepath) or | if (os.path.isabs(filepath) or | ||||
| filepath[1:3] == ":/" or filepath[1:3] == ":\\" or # Windows absolute path don't count as absolute on unix, have to handle them ourself | filepath[1:3] == ":/" or filepath[1:3] == ":\\" or # Windows absolute path don't count as absolute on unix, have to handle them ourself | ||||
| filepath[:1] == "/" or filepath[:1] == "\\"): # and vice versa | filepath[:1] == "/" or filepath[:1] == "\\"): # and vice versa | ||||
| Context not available. | |||||
| if bpy.app.debug: | if bpy.app.debug: | ||||
| print(str(stdout, encoding='utf-8')) | print(str(stdout, encoding='utf-8')) | ||||
| print("deleting " + filepath) | |||||
| os.remove(filepath) | os.remove(filepath) | ||||
| if bpy.app.debug: | if bpy.app.debug: | ||||
| Context not available. | |||||