In a thread by @tannaz, she describes how to set environment variables using the
core/hooks/tank_init.py file. We do not currently have a tank_init.py, so the thread mentions copying the default file from the GitHub repo. Will this work with the tk-config-basic? If so, do we copy the file into the same
core/hooks location of the basic config?
Also, when launching Toolkit there is a modification to the
PYTHONPATH environment variable to include site-packages from the Shotgun.app/Contents/Resources folder. When the Toolkit is closed, this path is then removed from the
PYTHONPATH. I would like this same behavior where anything I add in the tank_init.py will also add to the
PYTHONPATH and then remove itself once the Toolkit is closed. Will this happen by default by adding the variable in this way or do I also have to have a post cleanup process if I want to remove the path when closing Toolkit?