[Brian Corrigan]
> What I want to do is make the registry in a way that will dynamically
> find the path even if it just is to change the user name. Is there
> anyway I can do this? Maybe by using some kind of python script or Java
> code? Or does the sys.path solve this?
At the top of your script, add lines like the following, so that the
path is modified *at runtime*
#-=-=-=-=-=-
import sys
sys.path.append('~corrigb/applications', '~corrigb/jython-2.1/Lib')
#-=-=-=-=-=-
Or if you want to parameterise it
#-=-=-=-=-=-
import sys
username = 'corrigb'
sys.path.append('~%s/applications' % username)
sys.path.append('~%s/jython-2.1/Lib' % username)
#-=-=-=-=-=-
HTH,
Alan.
|