]> jfr.im git - irc/quakenet/qwebirc.git/commitdiff
Merge.
authorChris Porter <redacted>
Mon, 18 Aug 2014 19:47:06 +0000 (20:47 +0100)
committerChris Porter <redacted>
Mon, 18 Aug 2014 19:47:06 +0000 (20:47 +0100)
bin/dependencies_b.py

index b3b82b0b11b8521f884b8497837089614f3ccaaa..437f9953d72eebe4acdfa06b3242c5c0c0e53d2c 100644 (file)
@@ -1,8 +1,9 @@
-# this is seperate to allow us to use python 2.5 syntax without\r
+# this is separate to allow us to use python 2.5 syntax without\r
 # the dependency checker breaking on earlier versions.\r
 \r
 import sys\r
 import subprocess\r
+import os\r
 \r
 def fail(*message):\r
   print >>sys.stderr, "\n".join(message)\r
@@ -126,10 +127,10 @@ def check_json():
 \r
 def check_autobahn():\r
   try:\r
-    import autobahn, autobahn.websocket\r
+    import autobahn, autobahn.twisted.websocket\r
     x = autobahn.version.split(".")\r
     if len(x) != 3:\r
-      raise ImportError("Unknown version: %s", autobahn.vesrion)\r
+      raise ImportError()\r
     if (int(x[1]) < 8) or (int(x[1]) == 8 and int(x[2]) < 14):\r
       raise ImportError()\r
     return 0\r