Would it be acceptable to offer a patch that makes this utility more usable in the context of other Python programs?
(I'm playing with waf, but I think the same issues would affect scons and other build systems written in Python) The issues I'd like to address are: - bale out with sys.exit(1) is inappropriate except from main after catching an exception - there is no way to direct the generated files to a directory other than the original source directory Broadly I'd like to: replace print >>sys.stderr, 'foobar' sys.exit(1) with a throw of 'foobar' encapsulated, and mildly refactor Generate so most of the code is in a function that receives the output filenames. I'm slightly concerned about this code - it seems to me that the code in Generate that deals with header files and implementation files should be in the factory - its not appropriate in a PythonCodeGenerator or JavaCodeGenerator for example. I think the factory should be passed argv too (or asked what options it would like to process) but that's a bigger task and I don't propose to attack that at the moment. Any comments? James _______________________________________________ Libevent-users mailing list Libevent-users@monkey.org http://monkeymail.org/mailman/listinfo/libevent-users