Skip to content

Commit ccde372

Browse files
committed
reuse DEFAULT_ENV_FOR_SHEBANG
1 parent 00f8e79 commit ccde372

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

easybuild/tools/options.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@
6060
from easybuild.tools.build_log import DEVEL_LOG_LEVEL, EasyBuildError
6161
from easybuild.tools.build_log import init_logging, log_start, print_msg, print_warning, raise_easybuilderror
6262
from easybuild.tools.config import CONT_IMAGE_FORMATS, CONT_TYPES, DEFAULT_CONT_TYPE, DEFAULT_ALLOW_LOADED_MODULES
63-
from easybuild.tools.config import DEFAULT_BRANCH, DEFAULT_ENVVAR_USERS_MODULES, DEFAULT_FORCE_DOWNLOAD
64-
from easybuild.tools.config import DEFAULT_INDEX_MAX_AGE
63+
from easybuild.tools.config import DEFAULT_BRANCH, DEFAULT_ENV_FOR_SHEBANG, DEFAULT_ENVVAR_USERS_MODULES
64+
from easybuild.tools.config import DEFAULT_FORCE_DOWNLOAD, DEFAULT_INDEX_MAX_AGE
6565
from easybuild.tools.config import DEFAULT_JOB_BACKEND, DEFAULT_LOGFILE_FORMAT, DEFAULT_MAX_FAIL_RATIO_PERMS
6666
from easybuild.tools.config import DEFAULT_MINIMAL_BUILD_ENV, DEFAULT_MNS, DEFAULT_MODULE_SYNTAX, DEFAULT_MODULES_TOOL
6767
from easybuild.tools.config import DEFAULT_MODULECLASSES, DEFAULT_PATH_SUBDIRS, DEFAULT_PKG_RELEASE, DEFAULT_PKG_TOOL
@@ -375,7 +375,8 @@ def override_options(self):
375375
None, 'store', None, 'e', {'metavar': 'CLASS'}),
376376
'enforce-checksums': ("Enforce availability of checksums for all sources/patches, so they can be verified",
377377
None, 'store_true', False),
378-
'env-for-shebang': ("Define the env command to use when fixing shebangs", None, 'store', '/usr/bin/env'),
378+
'env-for-shebang': ("Define the env command to use when fixing shebangs", None, 'store',
379+
DEFAULT_ENV_FOR_SHEBANG),
379380
'experimental': ("Allow experimental code (with behaviour that can be changed/removed at any given time).",
380381
None, 'store_true', False),
381382
'extra-modules': ("List of extra modules to load after setting up the build environment",

0 commit comments

Comments
 (0)