Esempio n. 1
0
def revision():
    global __supertramp_revision__
    if __supertramp_revision__ is None:
        from dendropy.utility import vcsinfo
        try:
            try:
                __homedir__ = os.path.dirname(os.path.abspath(__file__))
            except IndexError:
                __homedir__ = os.path.dirname(os.path.abspath(__file__))
        except OSError:
            __homedir__ = None
        except:
            __homedir__ = None
        __supertramp_revision__ = vcsinfo.Revision(repo_path=__homedir__)
    return __supertramp_revision__
Esempio n. 2
0
def _get_revision_object():
    from dendropy.utility import vcsinfo
    __revision__ = vcsinfo.Revision(repo_path=homedir())
    return __revision__
Esempio n. 3
0
__project__ = "DendroPy"
__version__ = "3.9.1"

try:
    try:
        __homedir__ = __path__[0]
    except AttributeError:
        __homedir__ = os.path.dirname(os.path.abspath(__file__))
    except IndexError:
        __homedir__ = os.path.dirname(os.path.abspath(__file__))
except OSError:
    __homedir__ = None
except:
    __homedir__ = None

__revision__ = vcsinfo.Revision(repo_path=__homedir__)
__author__ = "Jeet Sukumaran and Mark T. Holder"
__copyright__ = "Copyright 2009 Jeet Sukumaran and Mark T. Holder."
__license__ = """
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program. If not, see <http://www.gnu.org/licenses/>.