Skip to content
Snippets Groups Projects
Commit 1874f3d5 authored by Björn Vonheiden's avatar Björn Vonheiden Committed by Sören Henning
Browse files

enable more safer passing of env variable domain restriction

parent 055e7ee0
No related branches found
No related tags found
1 merge request!62Enable setting domain restriction from theodolite.yaml
...@@ -125,8 +125,8 @@ def benchmark_parser(description): ...@@ -125,8 +125,8 @@ def benchmark_parser(description):
help='[mandatory] List of instances used in benchmarks') help='[mandatory] List of instances used in benchmarks')
parser.add_argument('--domain-restriction', parser.add_argument('--domain-restriction',
action="store_true", action="store_true",
default=eval( default=os.environ.get(
os.environ.get('DOMAIN_RESTRICTION', 'False').capitalize()), 'DOMAIN_RESTRICTION', 'false').lower() == 'true',
help='To use domain restriction. For details see README') help='To use domain restriction. For details see README')
parser.add_argument('--search-strategy', parser.add_argument('--search-strategy',
metavar='<strategy>', metavar='<strategy>',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment