Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion easybuild/framework/easyblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ def __init__(self, ec, logfile=None):
self.orig_modulepath = os.getenv('MODULEPATH')

# keep track of initial environment we start in, so we can restore it if needed
os.environ['___EASYBUILD___'] = "EasyBuild" # set an environment variable to know we are in an EB session
self.initial_environ = copy.deepcopy(os.environ)
self.reset_environ = None
self.tweaked_env_vars = {}
Expand Down
3 changes: 3 additions & 0 deletions easybuild/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,9 @@ def prepare_main(args=None, logfile=None, testing=None):
:param testing: enable testing mode
:return: 3-tuple with initial session state data, EasyBuildOptions instance, and tuple with configuration settings
"""
# set $___EASYBUILD___ environment variable to 'EasyBuild' to indicate that we're in an EasyBuild session
os.environ['___EASYBUILD___'] = 'EasyBuild'

register_lock_cleanup_signal_handlers()

# if $CDPATH is set, unset it, it'll only cause trouble...
Expand Down