How can I import a script with an arbitrary name ?

Fredrik Lundh fredrik at pythonware.com
Tue Oct 31 12:44:50 CET 2006


Steven D'Aprano wrote:

> The only advantage (or maybe it is a disadvantage?) I can see to your
> function is that it doesn't search the Python path and you can specify an
> absolute file name.

that's the whole point of doing an explicit load, of course.  if you 
think that's a disadvantage, you haven't done enough plugin work...

</F>




More information about the Python-list mailing list