Question for Windows system. My code is messy trying to get everything working with lots of hard-coded sys.path insert/append. I really want to get rid of. Our scripts and virtualenv do not live in the same location, what would be the best approach?
Would you have the IT set %PATH% to virtualenv python.exe?
Would you launch the scripts with bat file? That would mean having different bat file for every scripts.
Have an entry point to launch every other tools so you only have to set this up once?
The sys.path append/insert is also unavoidable when I want to call functions from Deadline events or jobscripts.
Can anyone give me some suggestion please?