[pitivi] Handle importing the render module when installed



commit c1e084d1f6a920431e8c5317bd6eb5d615b92151
Author: Thibault Saunier <tsaunier gnome org>
Date:   Tue Apr 1 21:28:19 2014 +0200

    Handle importing the render module when installed

 pitivi/timeline/previewers.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/timeline/previewers.py b/pitivi/timeline/previewers.py
index 955aba8..b65bd83 100644
--- a/pitivi/timeline/previewers.py
+++ b/pitivi/timeline/previewers.py
@@ -30,7 +30,11 @@ import pickle
 import sqlite3
 
 # Our C module optimizing waveforms rendering
-import renderer
+try:
+    from . import renderer
+except ImportError:
+    # Running uninstalled?
+    import renderer
 
 from pitivi.settings import get_dir, xdg_cache_home
 from pitivi.utils.signal import Signallable


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]