Monday, 27 February 2012

Disable multiprocessing in Python

I recently installed Python 2.6 onto a dev server, and I had a few problems when running a script with logging. For some reason, the multiprocessing module wasn't being recognized/installed.

Here is a quick example, if not using multiprocessing, how you can disable it within your script.

Disable Multiprocessing
Code Snippet
  1. import logging
  2. logging.logMultiprocessing = 0
End of Code Snippet

No comments: