I have a Twisted app that someone wrote. There is a run.py file that runs it in the foreground. There is also a twistd plugin called service.tac that makes it work in the background. About 90% of the code is the same in .py and .tac files.
Is it possible to combine these two? Or is this a bad idea?
source
share