[gnome-sharing-service] Allow testing without installing
- From: Patryk Zawadzki <pzawadzki src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sharing-service] Allow testing without installing
- Date: Tue, 22 Jun 2010 19:50:59 +0000 (UTC)
commit 2a2fa0e48cecc911d7b44c26f4cd64b3c480b1b8
Author: Patryk Zawadzki <patrys pld-linux org>
Date: Tue Jun 22 21:41:38 2010 +0200
Allow testing without installing
src/plugin.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/plugin.py b/src/plugin.py
index 9fcf67c..2e7e6b9 100644
--- a/src/plugin.py
+++ b/src/plugin.py
@@ -3,9 +3,12 @@
import sys
import os
import threading
-import defs
-PLUGIN_PATH = defs.PYTHONDIR + "/gss/plugins/"
+try:
+ import defs
+ PLUGIN_PATH = defs.PYTHONDIR + "/gss/plugins/"
+except:
+ PLUGIN_PATH = "./gss/plugins/"
# --- SuperClass of objects --- #
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]