goa/goactl.py
branchstable
changeset 5377 84d14ddfae13
parent 5344 ed4cd1ca96d6
child 5421 8167de96c523
--- a/goa/goactl.py	Thu Apr 22 19:37:56 2010 +0000
+++ b/goa/goactl.py	Thu Apr 22 19:48:04 2010 +0000
@@ -17,7 +17,11 @@
 
 
 def slink_directories():
-    import rql, yams, yapps, simplejson, docutils, roman
+    import rql, yams, yapps, docutils, roman
+    try:
+        import json as simplejson
+    except ImportError:
+        import simplejson
     from logilab import common as lgc
     from logilab import constraint as lgcstr
     from logilab import mtconverter as lgmtc