[conduit] Dont show f-spot if not installed
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [conduit] Dont show f-spot if not installed
- Date: Thu, 23 Sep 2010 03:05:38 +0000 (UTC)
commit 9d74971612b33555aba45d28ba373bfbdc5ce87d
Author: John Stowers <john stowers gmail com>
Date: Thu Sep 23 14:01:11 2010 +1200
Dont show f-spot if not installed
conduit/modules/FspotModule/FspotModule.py | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/conduit/modules/FspotModule/FspotModule.py b/conduit/modules/FspotModule/FspotModule.py
index e58ee4f..3d53ec4 100644
--- a/conduit/modules/FspotModule/FspotModule.py
+++ b/conduit/modules/FspotModule/FspotModule.py
@@ -14,9 +14,12 @@ import conduit.dataproviders.Image as Image
from gettext import gettext as _
-MODULES = {
- "FSpotDbusTwoWay" : { "type": "dataprovider" },
-}
+if Utils.program_installed("f-spot"):
+ MODULES = {
+ "FSpotDbusTwoWay" : { "type": "dataprovider" },
+ }
+else:
+ MODULES = {}
NAME_IDX = 0
ID_IDX = 1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]