Hello everyone,

I'd like to integrate NOX into a pre-existing python application, and
was wondering if you had any suggestions for the best way to proceed.
My application is quite large, and has a large number of library
dependencies.  Additionally, it has a main loop that initializes some
state that can only be done from the main thread (e.g., trapping
certain signals, parsing the command line, etc).

My initial thought was to put my code in the "examples" subdirectory
of the NOX distribution and have it be invoked there.  However, it
seems like I can't do things like trap those signals.  Additionally,
some of the library dependencies cause failures (e.g., OptionParser to
parse the arguments).  BTW my application is not written in
Twisted--it is just standard single-threaded Python code.

Is there a "best practice" for hooking NOX into an application without
having to re-write it?

Thanks,
George

_______________________________________________
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org

Reply via email to