creating addon system
timo verbeek
timoverbeek10 at gmail.com
Fri May 21 11:50:56 EDT 2010
What is the easiest way in python to create a addon system?
I found to easy ways:
* using a import system like this:
for striper in stripers:
if striper["enabled"]:
exec("from strip import %s as _x"%striper["striper"])
string = _x.start(string)
* using exec
for striper in stripers:
if striper["enabled"]:
use=open(stripper)
exec(use)
Do you now is the best way?
More information about the Python-list
mailing list