gitlabhq/gitlabhq — pull request #245 by jfroy (2011-12-28 05:23:57+00:00)
Title: Add initializer for pygments to fix crash on Mac OS X.

The pygments module loads Python lazily on first use, which in turn causes
CoreFoundation to be loaded (if using the system's default Python interpreter).
CoreFoundation has an initialization function that must run on the main thread.

By adding an initialization module which simply calls Pygments.start, Python
is loaded when the rails application loads, on the main thread.

Issue: #244