Blender 2.82a on Windows 10 - I'm trying to set th PYTHONPATH environment variable before launching Blender, but it seems that Blender's version of Python somehow has disabled the standard Python behaviour of putting paths from PYTHONPATH in sys.path at startup? If I launch with this batch file:
set BLENDER_USER_SCRIPTS=\\ourshare\ourscripts set PYTHONPATH=\\ourshare\ourpackages "C:\Program Files\Blender Foundation\Blender 2.82\blender.exe"
I'd expect sys.path to contain an entry of "\\ourshare\ourpackages" and be able to import things from there, but it doesn't. os.environ['PYTHONPATH'] does have the value "\\ourshare\ourpackages", so Blender doesn't seem to be deleting it from the environment it passes to its Python when it starts that up, which is why I'm wondering if they've customized their interpreter to not do the standard behaviour.
I can use a startup script in \\ourshare\ourscripts\startup to do the additions to sys.path, but if I want those available to all the startup scripts, the order of executing those is indeterminate (or at least not documented)? It may be whatever the filesystem returns when Blender queries it? It would be cleaner if we could use PYTHONPATH as we do with all our other Python-including DCC apps.