Skip to content
Snippets Groups Projects
Commit 390f5690 authored by Timo Koch's avatar Timo Koch
Browse files

[python][setup-dunepy.py] Allow to set opts file via env variable like dunecontrol

parent e00d0d70
Branches
Tags
1 merge request!982[python][setup-dunepy.py] Allow to set opts file via env variable like dunecontrol
Pipeline #38059 passed with warnings
......@@ -59,6 +59,10 @@ def main(argv):
else:
execute = ""
# see if the standard Dune enviroment variable for the opts file is defined
if optsfile is None:
optsfile = os.environ.get('DUNE_OPTS_FILE', None)
if optsfile is not None:
definitions = {}
command = ['bash', '-c', 'source ' + optsfile + ' && echo "$CMAKE_FLAGS"']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment