Hi, I've an import that takes too much time and resources. Basically it sets up a NLTK tagger.
I need this feature imported only if I'm runing as a worker. If I'm running the webserver or the shell I don't need that import at all. Is there a way to detect if I'm a worker when the models/modules are imported? Thank you. -- Vincenzo Ampolo http://vincenzo-ampolo.net http://goshawknest.wordpress.com --