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

« back to all changes in this revision

Viewing changes to pitivi/configure.py.in

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Bicha
  • Date: 2011-08-15 02:32:20 UTC
  • mfrom: (1.5.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110815023220-x2n5l0i4deiqn7dn
Tags: 0.14.2-0ubuntu1
* New upstream version.
  - New Mallard format help
* debian/control:
  - Add gnome-doc-utils to build-depends
  - Bump pygtk minimum to 2.24
* debian/patches/01_lpi.patch
  - Move LPI items below User Manual in Help menu
* debian/watch: Watch for 0.14.* tar.bz2

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
import os.path
27
27
 
 
28
 
 
29
def _get_root_dir():
 
30
    return '/'.join(os.path.dirname(os.path.abspath(__file__)).split('/')[:-1])
 
31
 
 
32
def _in_devel():
 
33
    rd = _get_root_dir()
 
34
    return os.path.exists(os.path.join(rd, '.git'))
 
35
 
 
36
 
28
37
LIBDIR = '@LIBDIR@'
29
38
PKGDATADIR = '@DATADIR@/@PACKAGE@'
30
39
pitivi_version = '@VERSION@'
31
40
APPNAME = '@PACKAGE_NAME@'
32
41
APPURL = 'http://www.pitivi.org/'
33
 
APPMANUALURL = 'http://www.pitivi.org/?go=documentation'
34
42
PYGTK_REQ = '@PYGTK_REQ@'
35
43
PYGST_REQ = '@PYGST_REQ@'
36
44
GST_REQ = '@GST_REQ@'
37
45
GNONLIN_REQ = '@GNONLIN_REQ@'
38
46
PYCAIRO_REQ = '@PYCAIRO_REQ@'
39
47
 
40
 
def _get_root_dir():
41
 
    return '/'.join(os.path.dirname(os.path.abspath(__file__)).split('/')[:-1])
42
 
 
43
 
def _in_devel():
44
 
    rd = _get_root_dir()
45
 
    return os.path.exists(os.path.join(rd, '.git'))
 
48
if _in_devel():
 
49
    APPMANUALURL_OFFLINE = 'ghelp://%s' % os.path.join(_get_root_dir(), 'help/C')
 
50
else:
 
51
    APPMANUALURL_OFFLINE = 'ghelp:pitivi'
 
52
 
 
53
APPMANUALURL_ONLINE = 'http://www.pitivi.org/manual'
 
54
 
46
55
 
47
56
def get_data_dir():
48
57
    if _in_devel():