How to insert my own module in front of site eggs?
Paul Rudin
paul.nospam at rudin.co.uk
Thu Nov 17 12:05:17 EST 2011
Roy Smith <roy at panix.com> writes:
> But, you're talking about installers. I'm talking about if I've already
> got something installed, how do I force one particular python process to
> pull in a local copy of a module in preference to the installed one?
>
> In some cases, I own the machine and can make changes to /usr/local/lib
> if I want to. But what about on a shared machine? I don't want to (or
> perhaps can't) play with what's in /usr/local/lib just to make my stuff
> load first.
Maybe I'm missing something - but if I want to do this I just mess about
with sys.path at the top of my python script/program. Always seems to
work... is there a situation in which it doesn't?
More information about the Python-list
mailing list