~timo-jyrinki/ubuntu/trusty/pitivi/backport_utopic_fixes

« back to all changes in this revision

Viewing changes to pitivi/configure.py

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2014-03-29 15:22:50 UTC
  • mto: (3.1.23 experimental)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: package-import@ubuntu.com-20140329152250-flg9onx416bqf3e3
Tags: upstream-0.93
Import upstream version 0.93

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Pitivi video editor
2
2
#
3
 
#       configure.py
 
3
#       pitivi/configure.py
4
4
#
5
5
# Copyright (c) 2005, Edward Hervey <bilboed@bilboed.com>
6
6
#
31
31
    return '/'.join(os.path.dirname(os.path.abspath(__file__)).split('/')[:-1])
32
32
 
33
33
 
34
 
def _in_devel():
 
34
def in_devel():
 
35
    """
 
36
    Returns whether the app is run from a git checkout.
 
37
    """
35
38
    rd = _get_root_dir()
36
39
    return os.path.exists(os.path.join(rd, '.git'))
37
40
 
38
41
 
39
42
LIBDIR = '/usr/local/lib'
40
43
PKGDATADIR = '/usr/local/share/pitivi'
41
 
pitivi_version = '0.92'
 
44
VERSION = '0.93'
42
45
APPNAME = 'Pitivi'
43
46
APPURL = 'http://www.pitivi.org/'
44
47
RELEASES_URL = 'http://pitivi.org/releases.txt'
45
48
APPMANUALURL_ONLINE = 'http://www.pitivi.org/manual'
46
49
 
47
50
 
48
 
if _in_devel():
 
51
if in_devel():
49
52
    APPMANUALURL_OFFLINE = 'ghelp://%s' % os.path.join(_get_root_dir(), 'help/C')
50
53
else:
51
54
    APPMANUALURL_OFFLINE = 'help:pitivi'
52
55
 
53
56
 
54
57
def get_data_dir():
55
 
    if _in_devel():
 
58
    if in_devel():
56
59
        datadir = os.path.join(_get_root_dir(), "data")
57
60
    elif os.getenv("PITIVI_TOP_LEVEL_DIR"):
58
61
        top_level = os.getenv("PITIVI_TOP_LEVEL_DIR")