~ubuntu-branches/ubuntu/lucid/pitivi/lucid

« back to all changes in this revision

Viewing changes to pitivi/configure.py

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2009-05-27 14:22:49 UTC
  • mfrom: (1.2.1 upstream) (3.1.13 experimental)
  • Revision ID: james.westby@ubuntu.com-20090527142249-tj0qnkc37320ylml
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# PiTiVi , Non-linear video editor
2
2
#
3
 
#       ui/configure.py
 
3
#       configure.py
4
4
#
5
5
# Copyright (c) 2005, Edward Hervey <bilboed@bilboed.com>
6
6
#
24
24
"""
25
25
 
26
26
import os.path
27
 
import string
28
27
 
29
 
LIBDIR = '/usr/local/lib'
30
 
PKGDATADIR = '/usr/local/share/pitivi'
31
 
PIXMAPDIR = '/usr/local/share/pixmaps'
32
 
pitivi_version = '0.10.3'
 
28
LIBDIR = '/usr/lib'
 
29
PKGDATADIR = '/usr/share/pitivi'
 
30
PIXMAPDIR = '/usr/share/pixmaps'
 
31
pitivi_version = '0.13.1'
33
32
APPNAME = 'PiTiVi'
34
 
PYGTK_REQ = '2.8.0'
35
 
PYGST_REQ = '0.10.6'
36
 
GST_REQ = '0.10.8'
37
 
GNONLIN_REQ = '0.10.6.1'
 
33
PYGTK_REQ = '2.12.0'
 
34
PYGST_REQ = '0.10.15'
 
35
GST_REQ = '0.10.23'
 
36
GNONLIN_REQ = '0.10.10.3'
38
37
PYCAIRO_REQ = '1.0.0'
39
38
 
 
39
def _get_root_dir():
 
40
    return '/'.join(os.path.dirname(os.path.abspath(__file__)).split('/')[:-1])
 
41
 
 
42
def _in_devel():
 
43
    rd = _get_root_dir()
 
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')))
 
47
 
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'))):
45
 
        root = dir
 
50
    _dir = os.path.dirname(os.path.abspath(__file__))
 
51
    if _in_devel():
 
52
        root = _dir
46
53
    else:
47
54
        root = PKGDATADIR
48
55
    return os.path.join(root, 'pixmaps')
49
56
 
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], '/')
 
59
    if _in_devel():
 
60
        root = _get_root_dir()
56
61
    else:
57
62
        root = PIXMAPDIR
58
63
    return root