Package Products :: Package ZenUtils :: Module PkgResources |
[hide private]
[frames] | no frames]

# Source Code for Module Products.ZenUtils.PkgResources

     1  ###########################################################################
     2  #
     3  # This program is part of Zenoss Core, an open source monitoring platform.
     4  # Copyright (C) 2008, Zenoss Inc.
     5  #
     6  # This program is free software; you can redistribute it and/or modify it
     7  # under the terms of the GNU General Public License version 2 as published by
     8  # the Free Software Foundation.
     9  #
    10  # For complete information please visit: http://www.zenoss.com/oss/
    11  #
    12  ###########################################################################
    13
    14  # _xmlplus is included in two packages, so we get an annoying UserWarning when
    15  # we import pkg_resources. If everything imports from here, we can filter out
    16  # the warning centrally.
    17  import warnings
    18  warnings.filterwarnings('ignore', '.*_xmlplus.*', UserWarning)
    19
    20  # There is a nasty incompatibility between pkg_resources and twisted.
    21  # Importing pkg_resources before the twisted reactor works around the problem.
    22  # See http://dev.zenoss.org/trac/ticket/3146 for details
    23  import pkg_resources
    24
    25  from Products.ZenUtils.Utils import unused
    26  unused(pkg_resources)
    27
    28  __all__ = ['pkg_resources']
    29