[Closed] Python management
This topic is more general than just Max, however I felt guilty posting in general
For those of you TA/TDs out there using Python, I have a couple questions:
I assume you have Python installed on all workstations?
If so, how do you manage modules and GUI packages?
hi,
i use py2exe, so isn’t necessary to have python on all workstation
for GUI, i use PyQT packages
but i use tortoise with svn server, for update all maxscript, python script, working exe directory on all workstation. Isn’t automatic install, but each user configure with 3dsmax directory
Kermit
We use Python/MAXScript here at Blur, and we use an external XML format file to manage all our paths, that way none of the scripts directly point to a specific location but can be built up on the fly. Then we have a site-package module in Python that can read that file and manage all our sys path info. So, for instance, if I am working in my local repository, when i call something like:
import blur.globals # site-package blur/globals.py
blur.globals.setEnvironment( “development” ) # adds the dev. lib path to sys.path
import blurLib # imports [codeRoot]/lib/blurLib.py, where [codeRoot] is defined external
# and can vary per environment, each environment contains a key/value
# pairing of paths
as opposed to:
import sys
import os
if not os.normcase( “c:/blur/code/lib/” ) in sys.path:
sys.path.append( os.normcase( “c:/blur/code/lib/” )
import blurLib
in every file. Plus, we have MAXScript, External Tools, & Python/XSI tools all reading from the same location, that way if we need to give tools to offsite guys, or people need them at home, they can just change the mapping in the XML Envionrment files and all the tools will update. As well as having Development, Beta, Production environments for the tools themselves to be mapped to