diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index 9e48cf1..099a18d 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.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" ;; diff --git a/build b/build index a5b591b..4c442c3 100755 --- a/build +++ b/build @@ -489,6 +489,7 @@ build::install() { install -m 0644 "${SRC_DIR}/bash" "${PREFIX}/init" install -m 0644 "${SRC_DIR}/bash_completion" "${PREFIX}/init" install -m 0644 "${SRC_DIR}/csh" "${PREFIX}/init" + install -m 0644 "${SRC_DIR}/Pmodules.py" "${PREFIX}/init" install -m 0644 "${SRC_DIR}/zsh" "${PREFIX}/init" install -m 0644 "${SRC_DIR}/libpbuild.bash" "${PREFIX}/lib"