Currently I have an OnSlaveStartingJob event grabbing the job, determining which pipeline version the user is on (a main branch and a test branch) via an environment variable, and adding the correct path to the PYTHONPATH. We use this to test new features before rolling out to users.
It works like this.
PLTOOLS = os.path.join('/vfx', 'pipe', 'src', os.environ['REPO'])
Then append PLTOOLS to the python path so the code can be found.
I just discovered today the Python Settings in “Configure Repository Options” today. Is it possible here to get the path in a similar way as above without using an event using this box, knowing that we may need the path to change based on who the user (dev/artist) is?