Home | History | Annotate | Download | only in paste
      1 # (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org)
      2 # Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
      3 try:
      4     import pkg_resources
      5     pkg_resources.declare_namespace(__name__)
      6 except ImportError:
      7     # don't prevent use of paste if pkg_resources isn't installed
      8     from pkgutil import extend_path
      9     __path__ = extend_path(__path__, __name__)
     10 
     11 try:
     12     import modulefinder
     13 except ImportError:
     14     pass
     15 else:
     16     for p in __path__:
     17         modulefinder.AddPackagePath(__name__, p)
     18