utils_local
_customize_and_run_template(template_filename, replacements, script_dir, logger_name, prefix=None)
¶
Customize one of the template bash scripts.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
template_filename |
str
|
Filename of the template file (ends with ".sh"). |
required |
replacements |
list[tuple[str, str]]
|
Dictionary of replacements. |
required |
script_dir |
str
|
Local folder where the script will be placed. |
required |
prefix |
Optional[int]
|
Prefix for the script filename. |
None
|
Source code in fractal_server/tasks/v2/local/utils_local.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
|