Package common :: Module defs
[hide private]
[frames] | no frames]

Source Code for Module common.defs

 1  # -*- coding:utf-8 -*- 
 2  ## src/common/defs.py 
 3  ## 
 4  ## Copyright (C) 2006 Nikos Kouremenos <kourem AT gmail.com> 
 5  ## Copyright (C) 2006-2010 Yann Leboulanger <asterix AT lagaule.org> 
 6  ## Copyright (C) 2006-2008 Jean-Marie Traissard <jim AT lapin.org> 
 7  ## Copyright (C) 2007 Brendan Taylor <whateley AT gmail.com> 
 8  ##                    Tomasz Melcer <liori AT exroot.org> 
 9  ## Copyright (C) 2008 Jonathan Schleifer <js-gajim AT webkeks.org> 
10  ## 
11  ## This file is part of Gajim. 
12  ## 
13  ## Gajim is free software; you can redistribute it and/or modify 
14  ## it under the terms of the GNU General Public License as published 
15  ## by the Free Software Foundation; version 3 only. 
16  ## 
17  ## Gajim is distributed in the hope that it will be useful, 
18  ## but WITHOUT ANY WARRANTY; without even the implied warranty of 
19  ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
20  ## GNU General Public License for more details. 
21  ## 
22  ## You should have received a copy of the GNU General Public License 
23  ## along with Gajim. If not, see <http://www.gnu.org/licenses/>. 
24  ## 
25   
26  docdir = '../' 
27  basedir   = '../' 
28  localedir = '../po' 
29   
30  version = '0.13.90' 
31  import subprocess 
32  try: 
33      hgversion = subprocess.Popen('hexdump -n6 -e\'6/1 "%02x"\' ../.hg/dirstate', 
34          shell=True, stdout=subprocess.PIPE).communicate()[0] 
35      version += '-' + hgversion 
36  except Exception: 
37      pass 
38   
39  import sys, os.path 
40  for base in ('.', 'common'): 
41      sys.path.append(os.path.join(base, '.libs')) 
42