how to import from variable source

Brian Quinlan brian at sweetapp.com
Sun Apr 15 17:56:17 EDT 2001


Hmmm, then you might want to consider using the imp module's functions
"find_module" and "load_module". That way you will be able to explicitly
specify the plugin directory without modifying sys.path.

-----Original Message-----
From: python-list-admin at python.org
[mailto:python-list-admin at python.org]On Behalf Of Rob Brown-Bayliss
Sent: Sunday, April 15, 2001 12:25 PM
To: Brian Quinlan
Cc: python-list at python.org
Subject: RE: how to import from variable source


On 15 Apr 2001 01:11:45 -0700, Brian Quinlan wrote:
> There is probably a better strategy but it is hard to guess what that
would
> be based on the information given.

Thank's this looks good...  What I am trying to do is create a pluing
system, my app is really just a plugin manager for the sub modules.  All
(95%) functionality will come from the imported modules



--

  Rob Brown-Bayliss
 ---======o======---
  www.ZOOstation.cc

--
http://mail.python.org/mailman/listinfo/python-list





More information about the Python-list mailing list