aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2017-03-23 18:56:50 +0100
committerSimon Warta <[email protected]>2017-03-25 19:28:49 +0100
commitf37885f53bbdf7fd1764ec2e8bd58c4df32dcb27 (patch)
tree297b32d2ea477734e275a10bd01bc911c197633a /src
parent8b1ada76cd9d0610bd498576802b355ede6d4ba7 (diff)
Use JSON to store build config
to improve debuggability
Diffstat (limited to 'src')
-rwxr-xr-xsrc/scripts/install.py4
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):