resolving module name conflicts.

Steven D'Aprano steve+comp.lang.python at pearwood.info
Fri Nov 11 19:42:46 EST 2011


On 2011年11月11日 23:11:38 +0100, Gelonida N wrote:
> Pytz is only imported by one module, so I wondered if there were any
> tricks to 'change sys.path' prior to importing pytz

sys.path is just a list of paths. You can import the sys module and 
manipulate it any way you like.
-- 
Steven


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /