Skip to content
Snippets Groups Projects
Commit 3122beac 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 1bfd9fb1
No related branches found
No related tags found
No related merge requests found
...@@ -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