diff --git a/command b/command index 53a8d6ffff1..c11cfebd250 100755 --- a/command +++ b/command @@ -1,6 +1,9 @@ #!/usr/bin/python -import json +try: + import json +except ImportError: + import simplejson as json import subprocess import sys import datetime diff --git a/ping b/ping index fe0b3948255..e40be68a2fe 100644 --- a/ping +++ b/ping @@ -1,5 +1,8 @@ #!/usr/bin/python -import json +try: + import json +except ImportError: + import simplejson as json print json.dumps(1)