gajim-plural/src/common/defs.py

43 lines
1.4 KiB
Python
Raw Normal View History

# -*- coding:utf-8 -*-
## src/common/defs.py
##
## Copyright (C) 2006 Nikos Kouremenos <kourem AT gmail.com>
2012-01-11 22:20:34 +01:00
## Copyright (C) 2006-2012 Yann Leboulanger <asterix AT lagaule.org>
2010-03-11 16:52:36 +01:00
## Copyright (C) 2006-2008 Jean-Marie Traissard <jim AT lapin.org>
## Copyright (C) 2007 Brendan Taylor <whateley AT gmail.com>
## Tomasz Melcer <liori AT exroot.org>
## Copyright (C) 2008 Jonathan Schleifer <js-gajim AT webkeks.org>
##
## This file is part of Gajim.
##
## Gajim 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; version 3 only.
##
## Gajim 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 Gajim. If not, see <http://www.gnu.org/licenses/>.
##
2008-07-20 16:48:08 +02:00
docdir = '../'
basedir = '../'
localedir = '../po'
2012-08-28 11:10:42 +02:00
version = '0.15.1'
import subprocess
try:
node = subprocess.Popen('hg tip --template "{node|short}"', shell=True,
stdout=subprocess.PIPE).communicate()[0]
2012-03-18 20:53:11 +01:00
if node:
version += '-' + node
except Exception:
pass
2008-07-20 16:48:08 +02:00
import sys, os.path
for base in ('.', 'common'):
sys.path.append(os.path.join(base, '.libs'))