From f37885f53bbdf7fd1764ec2e8bd58c4df32dcb27 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Thu, 23 Mar 2017 18:56:50 +0100 Subject: Use JSON to store build config to improve debuggability --- src/scripts/install.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/scripts/install.py b/src/scripts/install.py index 0a9683ca0..a92cd43eb 100755 --- a/src/scripts/install.py +++ b/src/scripts/install.py @@ -9,6 +9,7 @@ Botan is released under the Simplified BSD License (see license.txt) """ import errno +import json import logging import optparse import os @@ -105,7 +106,8 @@ def main(args = None): copy_file(src, dst) os.chmod(dst, exe_mode) - cfg = eval(open(os.path.join(options.build_dir, 'build_config.py')).read()) + with open(os.path.join(options.build_dir, 'build_config.json')) as f: + cfg = json.load(f) def process_template(template_str): class PercentSignTemplate(string.Template): -- cgit v1.2.3