ynput / ayon-launcher

AYON desktop application launcher
Apache License 2.0
31 stars 13 forks source link

Chore: Add PYTHONPATH in sys.path #135

Closed iLLiCiTiT closed 1 month ago

iLLiCiTiT commented 1 month ago

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).