Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/scripts/check.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2008-08-13 08:33:26 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2008-08-13 08:33:26 (GMT)
commit1919ca986581280f0b4624a8156228e15a7042a4 (patch)
tree3fcaf5b8974c68d4bee310f76b2f155e3c3d3b88 /scripts/check.py
parent7cdf8e9e825477aabf0b94df33f259e78280e7b7 (diff)
Make json and gobject optional.
Diffstat (limited to 'scripts/check.py')
-rw-r--r--scripts/check.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/check.py b/scripts/check.py
index f665e66..2054834 100644
--- a/scripts/check.py
+++ b/scripts/check.py
@@ -6,8 +6,6 @@ import signal
import subprocess
import time
-import gobject
-
from jhbuild.commands import Command, register_command
scripts_dir = os.path.dirname(__file__)
@@ -130,6 +128,12 @@ class cmd_check(Command):
print 'Done.'
def run(self, config, options, args):
+ try:
+ import gobject
+ except ImportError:
+ print 'You need pygobject to use this command.'
+ return 1
+
result = 0
xvfb_pid = self.start_xvfb()