mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
feat(ppro): sync only if not installed as .zxp package
This commit is contained in:
parent
b06db4f5c6
commit
ea3eadd191
1 changed files with 9 additions and 4 deletions
|
|
@ -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", ">"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue