feat(ppro): sync only if not installed as .zxp package

This commit is contained in:
Jakub Jezek 2020-04-23 19:10:09 +02:00
parent b06db4f5c6
commit ea3eadd191
No known key found for this signature in database
GPG key ID: C4B96E101D2A47F3

View file

@ -95,11 +95,14 @@ def setup(env=None):
if not test_rest_api_server():
return
# remove cep_cache from user temp dir
clearing_caches_ui()
if not env.get("installed_zxp"):
# remove cep_cache from user temp dir
clearing_caches_ui()
# synchronize extensions
extensions_sync()
# synchronize extensions
extensions_sync()
else:
log.info("Extensions installed as `.zxp`...")
log.info("Premiere Pype wrapper has been installed")
@ -131,6 +134,8 @@ def extensions_sync():
for name, src, dst in process_pairs:
if not os.path.isdir(src):
continue
if name not in _clearing_cache:
continue
if not os.path.exists(dst):
os.makedirs(dst, mode=0o777)
walktree(source=src, target=dst, options_input=["y", ">"])