Re: "Plugin" architecture - how to do?

2007-06-04 Thread anglozaxxon
On Apr 10, 10:26 pm, c james <[EMAIL PROTECTED]> wrote: > Take a look at Trac. This might give you some ideas. > > http://trac.edgewall.org/wiki/TracDev/ComponentArchitecture Thanks cJames, that's exactly what I'm looking for. -- http://mail.python.org/mailman/listinfo/python-list

Re: "Plugin" architecture - how to do?

2007-04-09 Thread anglozaxxon
On Apr 6, 9:59 am, "Nate Finch" <[EMAIL PROTECTED]> wrote: > On Apr 5, 10:57 am, [EMAIL PROTECTED] wrote: > > > I'm making a program that consists of a main engine + plugins. Both > > are in Python. My question is, how do I go about importing arbitrary > > code and have it be able to use the engi

Re: Looping issues

2007-04-05 Thread anglozaxxon
On Apr 5, 2:27 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > What I am trying to do is compare two files to each other. > > > If the 2nd file contains the same line the first file contains, I want > > to print it. I wrote up the following code: > > > correct_settings = o

Re: Looping issues

2007-04-05 Thread anglozaxxon
On Apr 5, 2:01 pm, [EMAIL PROTECTED] wrote: > What I am trying to do is compare two files to each other. > > If the 2nd file contains the same line the first file contains, I want > to print it. I wrote up the following code: > > correct_settings = open("C:\Python25\Scripts\Output > \correct_settin

"Plugin" architecture - how to do?

2007-04-05 Thread anglozaxxon
I'm making a program that consists of a main engine + plugins. Both are in Python. My question is, how do I go about importing arbitrary code and have it be able to use the engine's functions, classes, etc? First, here's how it's laid out on the filesystem: -mainstarterscript.py - -__init__.py