mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fix(ppro): env has to be passed into test rest api server function
This commit is contained in:
parent
ecb8a2799a
commit
ec5da9468b
1 changed files with 4 additions and 4 deletions
|
|
@ -92,7 +92,7 @@ def setup(env=None):
|
|||
self.EXTENSIONS_CACHE_PATH = env["EXTENSIONS_CACHE_PATH"]
|
||||
|
||||
log.info("Registering Adobe Premiere plug-ins..")
|
||||
if not test_rest_api_server():
|
||||
if not test_rest_api_server(env):
|
||||
return
|
||||
|
||||
if not env.get("installed_zxp"):
|
||||
|
|
@ -168,10 +168,10 @@ def clearing_caches_ui():
|
|||
log.error("problem: {}".format(e))
|
||||
|
||||
|
||||
def test_rest_api_server():
|
||||
def test_rest_api_server(env):
|
||||
# from pprint import pformat
|
||||
rest_url = os.getenv("PYPE_REST_API_URL")
|
||||
project_name = "{AVALON_PROJECT}".format(**dict(os.environ))
|
||||
rest_url = env.get("PYPE_REST_API_URL")
|
||||
project_name = "{AVALON_PROJECT}".format(**env)
|
||||
URL = "/".join((rest_url,
|
||||
"avalon/projects",
|
||||
project_name))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue