Not Sure This Can Be Done...
Diez B. Roggisch
deets at nospam.web.de
Tue Apr 1 18:57:47 EDT 2008
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 starting a virtual environment?
You can only do that yourself - you can write a helper-module that will
inspect the environment, locates the module, and appends it path to
sys.path.
Diez
More information about the Python-list
mailing list