1
1
Index: pitivi/bin/pitivi.in
2
2
===================================================================
3
--- pitivi.orig/bin/pitivi.in 2011-09-28 18:57:27.773150417 +0200
4
+++ pitivi/bin/pitivi.in 2011-09-28 18:57:42.765224752 +0200
6
# Add the path of pitivi stuff
7
# TODO : change it when it's finally in cvs
10
- return '/'.join(os.path.dirname(os.path.abspath(__file__)).split('/')[:-1])
13
- rd = _get_root_dir()
14
- return os.path.exists(os.path.join(rd, '.git'))
16
def _prepend_env_path(name, value):
17
os.environ[name] = os.pathsep.join(value +
18
os.environ.get(name, "").split(os.pathsep))
3
--- pitivi.orig/bin/pitivi.in 2014-03-29 15:24:00.782574262 +0100
4
+++ pitivi/bin/pitivi.in 2014-03-29 15:24:00.778574243 +0100
7
# Check if we're in development or installed version and set paths properly
9
- root_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
10
- return os.path.exists(os.path.join(root_dir, '.git'))
20
14
def _add_pitivi_path():
22
dir = os.path.dirname(os.path.abspath(__file__))
25
- root = os.path.split(dir)[0]
26
- localedir = os.path.join(os.path.split(dir)[0], 'locale')
28
- root = os.path.join(LIBDIR, 'pitivi', 'python')
29
- localedir = "@DATADIR@/locale"
30
+ root = os.path.join(LIBDIR, 'pitivi', 'python')
31
+ localedir = "@DATADIR@/locale"
33
if not root in sys.path:
34
sys.path.insert(0, root)
15
Index: pitivi/pitivi/configure.py
16
===================================================================
17
--- pitivi.orig/pitivi/configure.py 2014-03-29 15:24:00.782574262 +0100
18
+++ pitivi/pitivi/configure.py 2014-03-29 15:24:38.154750476 +0100
23
-# Again, mostly the same thing as in bin/pitivi.in and pitivi/utils/misc.py:
25
- return '/'.join(os.path.dirname(os.path.abspath(__file__)).split('/')[:-1])
30
- Returns whether the app is run from a git checkout.
32
- rd = _get_root_dir()
33
- return os.path.exists(os.path.join(rd, '.git'))
38
LIBDIR = '/usr/local/lib'
39
Index: pitivi/pitivi/configure.py.in
40
===================================================================
41
--- pitivi.orig/pitivi/configure.py.in 2014-03-29 15:24:00.782574262 +0100
42
+++ pitivi/pitivi/configure.py.in 2014-03-29 15:24:50.862810463 +0100
47
-# Again, mostly the same thing as in bin/pitivi.in and pitivi/utils/misc.py:
49
- return '/'.join(os.path.dirname(os.path.abspath(__file__)).split('/')[:-1])
54
- Returns whether the app is run from a git checkout.
56
- rd = _get_root_dir()
57
- return os.path.exists(os.path.join(rd, '.git'))
63
PKGDATADIR = '@DATADIR@/@PACKAGE@'