Skip to content
Snippets Groups Projects
Commit 5dec2bd9 authored by Karl-Hermann Wieners's avatar Karl-Hermann Wieners
Browse files

Fixed lapses in script generation

* Added support for search path to getexp (amends r3166)
* Added support for keyword substitution to default environment (amends r3061)
parent 204fcc90
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,9 @@ import sys ...@@ -11,7 +11,9 @@ import sys
from expconfig import ExpConfig, ExpConfigError from expconfig import ExpConfig, ExpConfigError
from feedback import die from feedback import die
# Utilities # Basic settings
config_roots = os.environ.get('MKEXP_PATH', '').split(':')
# #
# Main routine # Main routine
...@@ -44,7 +46,8 @@ if os.environ.has_key('DIFF'): ...@@ -44,7 +46,8 @@ if os.environ.has_key('DIFF'):
try: try:
config = ExpConfig(experiment_config_name, config = ExpConfig(experiment_config_name,
dict(map(lambda x: x.split('=', 1), sys.argv))) dict(map(lambda x: x.split('=', 1), sys.argv)),
config_roots)
except ExpConfigError as error: except ExpConfigError as error:
die(error.message, 2) die(error.message, 2)
......
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