Merge pull request #353 from pypeclub/bugfix/last_workfile_existence_check

Bugfix/last workfile existence check
This commit is contained in:
Milan Kolar 2020-07-17 17:25:31 +02:00 committed by GitHub
commit b00d4647c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -216,7 +216,7 @@ class AppAction(BaseAction):
"AVALON_HIERARCHY": hierarchy,
"AVALON_WORKDIR": workdir
})
if last_workfile_path:
if last_workfile_path and os.path.exists(last_workfile_path):
prep_env["AVALON_LAST_WORKFILE"] = last_workfile_path
prep_env.update(anatomy.roots_obj.root_environments())