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

Chore: Add PYTHONPATH in sys.path #135

Merged
merged 2 commits into from
Aug 2, 2024
Merged

Conversation

iLLiCiTiT
Copy link
Member

Changelog Description

Fill paths from PYTHONPATH env variable to sys.path.

Additional info

Values from PYTHONPATH are not automatically propagated to sys.path. The paths are appended. All paths that are required by AYON launcher are always inserted to beginning of the list so the change should not cause any issues,

Testing notes:

  1. At first place it does not break any AYON launcher process like tray etc.
  2. It should be possible to run script with custom module available only via PYTHONPATH (ayon_console.exe --skip-bootstrap /path/to/script.py).

@iLLiCiTiT iLLiCiTiT changed the title Chore: Use PYTHONPATH in sys.path Chore: Add PYTHONPATH in sys.path Aug 1, 2024
Copy link
Contributor

@BigRoy BigRoy left a comment

Choose a reason for hiding this comment

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

Didn't test but code looks good to me.

@iLLiCiTiT iLLiCiTiT merged commit 4686b68 into develop Aug 2, 2024
1 check passed
@iLLiCiTiT iLLiCiTiT deleted the enhancement/use-pythonpath branch August 2, 2024 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants