Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_operators/clip.py
| Show First 20 Lines • Show All 363 Lines • ▼ Show 20 Lines | def _rmproxy(abspath): | ||||
| if os.path.isdir(abspath): | if os.path.isdir(abspath): | ||||
| shutil.rmtree(abspath) | shutil.rmtree(abspath) | ||||
| else: | else: | ||||
| os.remove(abspath) | os.remove(abspath) | ||||
| def execute(self, context): | def execute(self, context): | ||||
| sc = context.space_data | sc = context.space_data | ||||
| clip = sc.clip | clip = sc.clip | ||||
| if clip.use_proxy_custom_directory: | if clip.proxy.use_proxy_custom_directory: | ||||
| proxydir = clip.proxy.directory | proxydir = clip.proxy.directory | ||||
| else: | else: | ||||
| clipdir = os.path.dirname(clip.filepath) | clipdir = os.path.dirname(clip.filepath) | ||||
| proxydir = os.path.join(clipdir, "BL_proxy") | proxydir = os.path.join(clipdir, "BL_proxy") | ||||
| clipfile = os.path.basename(clip.filepath) | clipfile = os.path.basename(clip.filepath) | ||||
| proxy = os.path.join(proxydir, clipfile) | proxy = os.path.join(proxydir, clipfile) | ||||
| absproxy = bpy.path.abspath(proxy) | absproxy = bpy.path.abspath(proxy) | ||||
| ▲ Show 20 Lines • Show All 712 Lines • Show Last 20 Lines | |||||