celaction last workfile

was not detecting last workfile version properly
This commit is contained in:
Jakub Jezek 2020-08-20 11:49:17 +01:00
parent bd6717fe20
commit 8f7509d824

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