#
# Copyright (c) 2004 rPath, Inc.
#
# This program is distributed under the terms of the Common Public License,
# version 1.0. A copy of this license should have been distributed with this
# source file in a file called LICENSE. If it is not present, the license
# is always available at http://www.opensource.org/licenses/cpl.php.
#
# This program is distributed in the hope that it will be useful, but
# without any waranty; without even the implied warranty of merchantability
# or fitness for a particular purpose. See the Common Public License for
# full details.
#

"""
The Conary Repository System

@group Package Building: build, buildpackage, recipe, cook, policy,
                         destdirpolicy, packagepolicy
@group Command Line: cscmd, srccmd, updatecmd
@group Database/Repository: database, local, repository, versioned
@group Package/Changeset objects: package, changeset, versions
@group Package installation/rollback: update, rollbacks
@group Utility: util, lookaside, rpmhelper, sha1helper, fixedglob, log, enum, magic
@group Files: datastore, files, filecontainer
"""

__all__ = [ 'callbacks' ]

#
# Copyright (c) 2004 rPath, Inc.
#
# This program is distributed under the terms of the Common Public License,
# version 1.0. A copy of this license should have been distributed with this
# source file in a file called LICENSE. If it is not present, the license
# is always available at http://www.opensource.org/licenses/cpl.php.
#
# This program is distributed in the hope that it will be useful, but
# without any waranty; without even the implied warranty of merchantability
# or fitness for a particular purpose. See the Common Public License for
# full details.
#

"""
The Conary Repository System

@group Package Building: build, buildpackage, recipe, cook, policy,
                         destdirpolicy, packagepolicy
@group Command Line: cscmd, srccmd, updatecmd
@group Database/Repository: database, local, repository, versioned
@group Package/Changeset objects: package, changeset, versions
@group Package installation/rollback: update, rollbacks
@group Utility: util, lookaside, rpmhelper, sha1helper, fixedglob, log, enum, magic
@group Files: datastore, files, filecontainer
"""

def _enableOldStyleImports():
    # automatically append conary to the path, so that internal imports in
    # conary will work
    import os
    import sys
    sys.path.append(os.path.dirname(sys.modules[__name__].__file__))

enable old style imports via a hidden function