Package: pitivi / 0.13.4-3

01_disable-devel-mode.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- pitivi-0.13.3.orig/bin/pitivi.in	2009-12-17 00:22:50.000000000 +0100
+++ pitivi-0.13.3/bin/pitivi.in	2009-12-17 00:43:42.000000000 +0100
@@ -32,29 +32,17 @@
 
 localedir = ""
 
-# Check if we're in development or installed version
 # Add the path of pitivi stuff
 # TODO : change it when it's finally in cvs
 
 def _get_root_dir():
     return '/'.join(os.path.dirname(os.path.abspath(__file__)).split('/')[:-1])
 
-def _in_devel():
-    rd = _get_root_dir()
-    return (os.path.exists(os.path.join(rd, '.svn')) or
-            os.path.exists(os.path.join(rd, 'CVS')) or
-            os.path.exists(os.path.join(rd, '.git')))
-
 def _add_pitivi_path():
     global localedir
     dir = os.path.dirname(os.path.abspath(__file__))
-    root = None
-    if _in_devel():
-        root = os.path.split(dir)[0]
-        localedir = os.path.join(os.path.split(dir)[0], 'locale')
-    else:
-        root = os.path.join(LIBDIR, 'pitivi', 'python')
-        localedir = "@DATADIR@/locale"
+    root = os.path.join(LIBDIR, 'pitivi', 'python')
+    localedir = "@DATADIR@/locale"
 
     if not root in sys.path:
         sys.path.insert(0, root)