~lazr-developers/lazr.authentication/trunk

« back to all changes in this revision

Viewing changes to src/lazr/yourpkg/__init__.py

  • Committer: Barry Warsaw
  • Date: 2009-01-08 18:44:42 UTC
  • Revision ID: barry@python.org-20090108184442-x7vjj4iysajm0ipp
Initial package template for lazr packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright 2009 Canonical Ltd.  All rights reserved.
 
2
#
 
3
# This file is part of lazr.yourpkg
 
4
#
 
5
# lazr.config is free software: you can redistribute it and/or modify it
 
6
# under the terms of the GNU Lesser General Public License as published by
 
7
# the Free Software Foundation, either version 3 of the License, or (at your
 
8
# option) any later version.
 
9
#
 
10
# lazr.config is distributed in the hope that it will be useful, but WITHOUT
 
11
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 
12
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
 
13
# License for more details.
 
14
#
 
15
# You should have received a copy of the GNU Lesser General Public License
 
16
# along with lazr.config.  If not, see <http://www.gnu.org/licenses/>.
 
17
 
 
18
__version__ = '0.1'
 
19
 
 
20
# This is a namespace package.
 
21
try:
 
22
    import pkg_resources
 
23
    pkg_resources.declare_namespace(__name__)
 
24
except ImportError:
 
25
    import pkgutil
 
26
    __path__ = pkgutil.extend_path(__path__, __name__)