Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose function to locate workdir #20

Closed
wants to merge 1 commit into from

Conversation

kalisp
Copy link
Member

@kalisp kalisp commented Dec 20, 2024

Changelog Description

This is used in Deadline addon (safely) to render to renders folder in workdir instead of next to published file.

Additional review information

Required for ynput/ayon-deadline#91

This is used in Deadline addon (safely) to render to `renders` folder in workdir instead of next to published file.
@kalisp kalisp requested a review from jakubjezek001 December 20, 2024 16:18
@kalisp kalisp self-assigned this Dec 20, 2024
@kalisp kalisp added the type: enhancement Improvement of existing functionality or minor addition label Dec 20, 2024
Comment on lines +642 to +643
def get_workdir():
return ProcessContext.workfile_path
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isnt' the workfile path always kept "live" in AYON regardless, by using AYON_WORKDIR since it updates on task change?

So couldn't we technically just rely on AYON_WORKDIR?

Comment on lines +404 to +405
elif tool_name == "publisher":
kwargs["tab"] = "publish"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should not be in this PR.

@kalisp
Copy link
Member Author

kalisp commented Jan 7, 2025

Closing as function is not necessary, env var AYON_WORKDIR could be used instead. Could be refactored to let host/addon provide this information (maybe via registered_host().work_root(session) (not sure what is session though).

@kalisp kalisp closed this Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Improvement of existing functionality or minor addition
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants