From 6b4a93577b5677f9738f6dd7d7acd71f86f46888 Mon Sep 17 00:00:00 2001 From: Chris Dent Date: Mon, 14 Jan 2013 22:24:30 +0000 Subject: install: add simplejson fallback Make tools/install.py work with python 2.5 2.5 is still fairly widespread and does not include a json lib as standard. Most python folk will have simplejson if they are in that boat. In general it seems a bit tricky to solve this perfectly... --- tools/install.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/install.py b/tools/install.py index 51b7911cc..8ff7c395f 100755 --- a/tools/install.py +++ b/tools/install.py @@ -1,7 +1,12 @@ #!/usr/bin/env python import errno -import json + +try: + import json +except ImportError: + import simplejson as json + import os import re import shutil -- cgit v1.2.3