Merge branch 'hotfix/celaction_last_workfiles_avalon_env'

This commit is contained in:
Milan Kolar 2020-08-20 16:18:42 +02:00
commit aefa1e4fc0

View file

@ -57,8 +57,8 @@ class CelactionPrelaunchHook(PypeHook):
self.log.info(f"Work dir is: `{workdir}`")
# get last version of workfile
workfile_last = get_last_version_from_path(
workdir, workfile.split(version))
workfile_last = env.get("AVALON_LAST_WORKFILE")
self.log.debug(f"_ workfile_last: `{workfile_last}`")
if workfile_last:
workfile = workfile_last