Re: Not Sure This Can Be Done...

2008-04-09 Thread gamename
Hi, In hopes it may help someone else, here's what I ended up doing: 1) Add this to to point to your local 'tools' directory: import site # the python tools dir is at "../../tools/python" site.addsitedir('..'+os.sep+'..'+os.sep+'tools'+os.sep +'python') 2) In the

Re: Not Sure This Can Be Done...

2008-04-05 Thread gamename
Thanks! Good suggestion(s) all. Maybe I can get this done. :) -T On Apr 1, 4:49 pm, MrJean1 <[EMAIL PROTECTED]> wrote: > In any script upon startup, sys.path[0] contains the full path of the > directory where the script is located. See lib/module-sys.html> under 'path

Re: Not Sure This Can Be Done...

2008-04-01 Thread MrJean1
In any script upon startup, sys.path[0] contains the full path of the directory where the script is located. See under 'path'. it should be straightforward from here (untested though). In each script, get the sys.path[0] string, split it using os.pat

Re: Not Sure This Can Be Done...

2008-04-01 Thread Diez B. Roggisch
gamename schrieb: >> Use virtualenv to create a local python, and activate that when >> developing for that branch. > > Thanks for the suggestion, but that's the problem: having to activate > it. > Isn't there some way to simply have the local script look at a > specified > dir rather than starti

Re: Not Sure This Can Be Done...

2008-04-01 Thread gamename
> Use virtualenv to create a local python, and activate that when > developing for that branch. Thanks for the suggestion, but that's the problem: having to activate it. Isn't there some way to simply have the local script look at a specified dir rather than starting a virtual environment? -T -

Re: Not Sure This Can Be Done...

2008-04-01 Thread Diez B. Roggisch
gamename schrieb: > Hi, > > I generally have several copies of the same development environment > checked out from cvs at any one time. Each development tree has a > 'tools' dir containing python modules. Scattered in different places > in the tree are various python scripts. > > What I want to

Not Sure This Can Be Done...

2008-04-01 Thread gamename
Hi, I generally have several copies of the same development environment checked out from cvs at any one time. Each development tree has a 'tools' dir containing python modules. Scattered in different places in the tree are various python scripts. What I want to do is force my scripts to always