diff options
Diffstat (limited to 'src/scripts/install.py')
-rwxr-xr-x | src/scripts/install.py | 4 |
1 files changed, 3 insertions, 1 deletions
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): |