How can I import a script with an arbitrary name ?
Steven D'Aprano
steve at REMOVE.THIS.cybersource.com.au
Tue Oct 31 07:17:02 EST 2006
On Tue, 31 Oct 2006 12:44:50 +0100, Fredrik Lundh wrote:
> 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...
Guilty as charged.
--
Steven.
More information about the Python-list
mailing list