Re: Best way to handle changing list of class imports

2009-10-12 Thread greg
Dave Angel wrote: For that, I'd suggest reserving a directory at a known location, doing an os.path.dirname() on that directory, and building a list of module names. Then use __import__() to load them, and build a list of module objects, and a list of classes in those modules. Suggest classn

Re: Best way to handle changing list of class imports

2009-10-10 Thread Scott Grant
On Oct 10, 6:44 pm, Dave Angel wrote: > Scott Grant wrote: > > On Oct 10, 2:42 pm, "Diez B. Roggisch" wrote: > > >> Scott Grant schrieb: > > >>> Hi there, > > >>> I'd like to set up a framework in which I can add or remove new > >>> classes of a given expected subclass to my package, and have the

Re: Best way to handle changing list of class imports

2009-10-10 Thread Dave Angel
Scott Grant wrote: On Oct 10, 2:42 pm, "Diez B. Roggisch" wrote: Scott Grant schrieb: Hi there, I'd like to set up a framework in which I can add or remove new classes of a given expected subclass to my package, and have the system load that set at runtime and be able to use

Re: Best way to handle changing list of class imports

2009-10-10 Thread Scott Grant
On Oct 10, 2:42 pm, "Diez B. Roggisch" wrote: > Scott Grant schrieb: > > > > > Hi there, > > > I'd like to set up a framework in which I can add or remove new > > classes of a given expected subclass to my package, and have the > > system load that set at runtime and be able to use them.  In essen

Re: Best way to handle changing list of class imports

2009-10-10 Thread Diez B. Roggisch
Scott Grant schrieb: Hi there, I'd like to set up a framework in which I can add or remove new classes of a given expected subclass to my package, and have the system load that set at runtime and be able to use them. In essence, if I have a class X, and subclasses A, B, and C that derive from X

Best way to handle changing list of class imports

2009-10-10 Thread Scott Grant
Hi there, I'd like to set up a framework in which I can add or remove new classes of a given expected subclass to my package, and have the system load that set at runtime and be able to use them. In essence, if I have a class X, and subclasses A, B, and C that derive from X, what's the most pytho