On Nov 18, 11:36 am, Roy Smith <r... at panix.com> wrote: > What if the first import of a module is happening inside some code you > don't have access to? No import will happen until you import something. As long as you change sys.path before you do, all subsequent imports will use that path.