[rhythmbox/gobject-introspection] upnp_coherence: fix louie imports



commit dea1031178ae1c0437b1100e98ea50c54f80a071
Author: Christian Becke <christianbecke gmail com>
Date:   Thu Oct 22 14:52:57 2009 +0200

    upnp_coherence: fix louie imports

 plugins/coherence/upnp_coherence/MediaPlayer.py |    6 +++++-
 plugins/coherence/upnp_coherence/MediaStore.py  |    6 +++++-
 plugins/coherence/upnp_coherence/__init__.py    |    6 +++++-
 3 files changed, 15 insertions(+), 3 deletions(-)
---
diff --git a/plugins/coherence/upnp_coherence/MediaPlayer.py b/plugins/coherence/upnp_coherence/MediaPlayer.py
index 95ce8ee..687c685 100644
--- a/plugins/coherence/upnp_coherence/MediaPlayer.py
+++ b/plugins/coherence/upnp_coherence/MediaPlayer.py
@@ -13,7 +13,11 @@ from twisted.python import failure
 from coherence.upnp.core.soap_service import errorCode
 from coherence.upnp.core import DIDLLite
 
-import louie
+try:
+	import louie
+except ImportError:
+	import coherence.extern.louie as louie
+
 from coherence.extern.simple_plugin import Plugin
 from coherence import log
 
diff --git a/plugins/coherence/upnp_coherence/MediaStore.py b/plugins/coherence/upnp_coherence/MediaStore.py
index a15e442..326cb3f 100644
--- a/plugins/coherence/upnp_coherence/MediaStore.py
+++ b/plugins/coherence/upnp_coherence/MediaStore.py
@@ -5,7 +5,11 @@
 # Copyright 2007, Frank Scholz <coherence beebits net>
 
 import os.path
-import louie
+try:
+	import louie
+except ImportError:
+	import coherence.extern.louie as louie
+
 import urllib
 
 from gi.repository import RB
diff --git a/plugins/coherence/upnp_coherence/__init__.py b/plugins/coherence/upnp_coherence/__init__.py
index 14ae8ad..75a42ce 100644
--- a/plugins/coherence/upnp_coherence/__init__.py
+++ b/plugins/coherence/upnp_coherence/__init__.py
@@ -6,7 +6,11 @@
 # Licensed under the MIT license
 # http://opensource.org/licenses/mit-license.php
 
-import louie
+try:
+	import louie
+except ImportError:
+	import coherence.extern.louie as louie
+
 from coherence import log
 
 # for the icon



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