29
LIBDIR = '/usr/local/lib'
30
PKGDATADIR = '/usr/local/share/pitivi'
31
PIXMAPDIR = '/usr/local/share/pixmaps'
32
pitivi_version = '0.10.3'
29
PKGDATADIR = '/usr/share/pitivi'
30
PIXMAPDIR = '/usr/share/pixmaps'
31
pitivi_version = '0.13.1'
37
GNONLIN_REQ = '0.10.6.1'
36
GNONLIN_REQ = '0.10.10.3'
38
37
PYCAIRO_REQ = '1.0.0'
40
return '/'.join(os.path.dirname(os.path.abspath(__file__)).split('/')[:-1])
44
return (os.path.exists(os.path.join(rd, '.svn')) or
45
os.path.exists(os.path.join(rd, 'CVS')) or
46
os.path.exists(os.path.join(rd, '.git')))
40
48
def get_pixmap_dir():
41
49
""" Returns the directory for program-only pixmaps """
42
dir = os.path.dirname(os.path.abspath(__file__))
43
if (os.path.exists(os.path.join(dir, 'CVS')) or
44
os.path.exists(os.path.join(dir, '.svn'))):
50
_dir = os.path.dirname(os.path.abspath(__file__))
48
55
return os.path.join(root, 'pixmaps')
50
57
def get_global_pixmap_dir():
51
58
""" Returns the directory for global pixmaps (ex : application icon) """
52
dir = os.path.dirname(os.path.abspath(__file__))
53
if (os.path.exists(os.path.join(dir, 'CVS')) or
54
os.path.exists(os.path.join(dir, '.svn'))):
55
root = string.join(dir.split('/')[:-1], '/')
60
root = _get_root_dir()