Skip to content

Resolve environment variables in dev bundle addon paths#253

Merged
iLLiCiTiT merged 7 commits intodevelopfrom
enhancement/use-env-var-in-dev-bundle-paths
Sep 9, 2025
Merged

Resolve environment variables in dev bundle addon paths#253
iLLiCiTiT merged 7 commits intodevelopfrom
enhancement/use-env-var-in-dev-bundle-paths

Conversation

@antirotor
Copy link
Copy Markdown
Member

Changelog Description

Add support of resolution of environment variables in dev bundle addon paths. You can use standard {FOO_BAR} format within the path. This can be used to set dev bundle to work on multiple platforms provided the environment variable is set there.

Additional info

This also needs PR in ayon-core - ayon-core/#1429

Testing notes:

  1. In dev bundle, set path to addons like {DEV_ADDONS}/ayon-core/client
  2. Set this environment variable so the path exist and can be resolved
  3. Run AYON

@antirotor antirotor self-assigned this Sep 8, 2025
@antirotor antirotor added the type: enhancement Improvement of existing functionality or minor addition label Sep 8, 2025
@github-project-automation github-project-automation bot moved this to Pending Review in PR reviewing Sep 8, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for environment variable resolution in dev bundle addon paths using the standard {VAR_NAME} format. This enables dev bundles to work across multiple platforms by setting appropriate environment variables.

  • Wraps the path formatting in a try-catch block to handle missing environment variables gracefully
  • Logs a warning when environment variable resolution fails instead of crashing
  • Uses os.environ dictionary to resolve environment variables in addon paths

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
antirotor and others added 2 commits September 8, 2025 16:31
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
@github-project-automation github-project-automation bot moved this from Pending Review to Merge Requested in PR reviewing Sep 8, 2025
@iLLiCiTiT iLLiCiTiT merged commit be79c7b into develop Sep 9, 2025
1 check passed
@github-project-automation github-project-automation bot moved this from Merge Requested to Done in PR reviewing Sep 9, 2025
@iLLiCiTiT iLLiCiTiT deleted the enhancement/use-env-var-in-dev-bundle-paths branch October 13, 2025 08:17
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

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants