Making simplejson a fallback for py<2.6
[gonvert] / gonvert / gonvert_qt.py
index c37b024..3cc50b6 100755 (executable)
@@ -8,7 +8,11 @@ from __future__ import with_statement
 
 import os
 import math
 
 import os
 import math
-import simplejson
+try:
+       import json as simplejson
+except ImportError:
+       print "json not available, falling back to simplejson"
+       import simplejson
 import logging
 import logging.handlers
 
 import logging
 import logging.handlers