~sambuddhabasu1/mailman/fix_mailman_run_error

« back to all changes in this revision

Viewing changes to src/mailman/__init__.py

  • Committer: Barry Warsaw
  • Date: 2013-08-25 18:55:33 UTC
  • mto: This revision was merged to the branch mainline in revision 7216.
  • Revision ID: barry@list.org-20130825185533-zpc5isnbx71zgn37
Switch to virtualenv and nose2 instead of zc.buildout and zope.testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
#
45
45
# Do *not* do this if we're building the documentation.
46
46
if 'build_sphinx' not in sys.argv:
47
 
    if sys.argv[0].split(os.sep)[-1] == 'test':
 
47
    if any('nose2' in arg for arg in sys.argv):
48
48
        from mailman.testing.i18n import initialize
49
49
    else:
50
50
        from mailman.core.i18n import initialize