Skip to content

Commit b8402b4

Browse files
committed
Use full path to Python for $_
1 parent 57a85b0 commit b8402b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

easybuild/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def main(args=None, logfile=None, do_build=None, testing=False, modtool=None):
233233
# When EB is run via `exec` the special bash variable $_ is not set
234234
# So emulate this here to allow (module) scripts depending on that to work
235235
if '_' not in os.environ:
236-
os.environ['_'] = os.path.basename(sys.executable or 'python')
236+
os.environ['_'] = sys.executable
237237

238238
# purposely session state very early, to avoid modules loaded by EasyBuild meddling in
239239
init_session_state = session_state()

0 commit comments

Comments
 (0)