mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-07-02 20:00:50 +02:00
Python as "shell" support added
This commit is contained in:
@@ -67,6 +67,9 @@ export_env() {
|
||||
csh | tcsh )
|
||||
local -r fmt="setenv %s \"%s\"; "
|
||||
;;
|
||||
python )
|
||||
local -r fmt="os.environ['%s'] = '%s'\n"
|
||||
;;
|
||||
* )
|
||||
std::die 1 "Unsupported shell -- ${Shell}"
|
||||
;;
|
||||
@@ -2838,6 +2841,9 @@ case "$1" in
|
||||
csh | tcsh )
|
||||
declare Shell='csh'
|
||||
;;
|
||||
python )
|
||||
declare Shell='python'
|
||||
;;
|
||||
* )
|
||||
std::die 1 "${CMD}: unsupported shell -- $1"
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user