James,

On Oct 13, 2010, at 7:20 PM, James Y Knight wrote:

> You need to avoid using or importing any OSX APIs until after the 
> daemonization has occurred. Unfortunately, twisted executes the entire script 
> file before daemonizing. [that's unfortunate for other reasons besides this, 
> too]
> 
> Here's a corrected version of your script which works properly. It defers 
> importing Quartz until the reactor is running, by moving it into a function 
> called by reactor.callWhenRunning().

Wow! That is incredible. THANKS!

Erik
_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to