- Resolves #87
This commit is contained in:
Fred Park 2017-05-17 09:28:19 -07:00
Родитель 11c5dc700b
Коммит c3a72fa4e3
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -2354,7 +2354,9 @@ def task_settings(cloud_pool, config, poolconf, jobspec, conf, missing_images):
# mount batch root dir
run_opts.append(
'-v $AZ_BATCH_NODE_ROOT_DIR:$AZ_BATCH_NODE_ROOT_DIR')
# set working directory
# set working directory if not already set
if not any((x.startswith('-w ') or x.startswith('--workdir '))
for x in run_opts):
run_opts.append('-w $AZ_BATCH_TASK_WORKING_DIR')
# always add option for envfile
envfile = '.shipyard.envlist'