~barry/mailman/events-and-web

« back to all changes in this revision

Viewing changes to src/mailman/__init__.py

  • Committer: Barry Warsaw
  • Date: 2011-09-24 02:29:10 UTC
  • mto: This revision was merged to the branch mainline in revision 7054.
  • Revision ID: barry@list.org-20110924022910-vqmxkgjbf0padro0
This is the way to build the documentation now:

$ python setup.py build_sphinx

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
# however, we'll initialize it differently for tests.  We have to do it this
42
42
# early so that module contents is set up before anything that needs it is
43
43
# imported.
44
 
if sys.argv[0].split(os.sep)[-1] == 'test':
45
 
    from mailman.testing.i18n import initialize
46
 
else:
47
 
    from mailman.core.i18n import initialize
48
 
initialize()
 
44
#
 
45
# Do *not* do this if we're building the documentation.
 
46
if 'build_sphinx' not in sys.argv:
 
47
    if sys.argv[0].split(os.sep)[-1] == 'test':
 
48
        from mailman.testing.i18n import initialize
 
49
    else:
 
50
        from mailman.core.i18n import initialize
 
51
    initialize()