#!/usr/bin/python
# $Id: loginfo,v 1.3 2003/08/18 05:24:32 acapnotic Exp $

import sys
try:
    # Ok, this is one of those bits of code which needs commenting.  Problem
    # is, this script may be invoked in such a way that Python adds '' to
    # the beginning of sys.path, and CVS seems to run commitinfo scripts
    # from a directory in which there are copies of the files waiting to be
    # checked in.  The result is that if you are checking in a file whose name
    # conflicts with something in the top-level module namespace, (i.e. most
    # anything in the standard library, such as 'token.py'), and that module
    # is imported by any code used by this process, Python will load that file
    # instead of the module this code expects.
    #   The effects of this range from not being able to check things in when
    # Python throws an exception and gives a nonzero exit code to commitinfo,
    # to a wide security hole if you thought you were giving people "CVS only"
    # accounts.
    #   Removing '' from the path should solve all that.
    sys.path.remove('')
except ValueError:
    pass

from cvstoys import loginfo
loginfo.main()
