Hi,

The problem does not occur in a default installation, unless there's one of
the version control dirs under /usr, as mentioned by Tom.

Nevertheless, I don't see why any devel-related code should be shipped in
debian packages. Patch attached that removes the offending code.

Cheers,
Serafeim

-- 
debtags-organised WNPP bugs: http://members.hellug.gr/serzan/wnpp
--- 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)

Reply via email to