mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Merge pull request #1401 from ynput/bugfix/workdir-creation
Workfiles: Make sure workdir exists
This commit is contained in:
commit
861cce40ff
1 changed files with 2 additions and 0 deletions
|
|
@ -944,6 +944,8 @@ class IWorkfileHost:
|
|||
self._emit_workfile_save_event(event_data, after_save=False)
|
||||
|
||||
workdir = os.path.dirname(filepath)
|
||||
if not os.path.exists(workdir):
|
||||
os.makedirs(workdir, exist_ok=True)
|
||||
|
||||
# Set 'AYON_WORKDIR' environment variable
|
||||
os.environ["AYON_WORKDIR"] = workdir
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue