* Saved the original lmod_python.py and

~/.ipython/profile_default/startup/000-odurc-lmod.py
  from Wahab cluster on the "legacy" lmod-based ipython/jupyter
  session. Last update: 2020-06-09.

  Sigs:
    # -rw-r--r-- 1 wpurwant users 179 2020-06-03 15:49 000-odurc-lmod.py
    # -rw-r--r-- 1 wpurwant users 843 2020-03-17 14:02 lmod_python.py
    # 8718a2d7a7d6d152701e6c31254f7168  000-odurc-lmod.py
    # 24a740e83656875bd39f942529378414  lmod_python.py
This commit is contained in:
Wirawan Purwanto
2022-02-22 09:55:55 -05:00
parent 9edb1e040d
commit 7c02045fa1
2 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
try:
from lmod_python import module
except ModuleNotFoundError:
import sys
sys.path.append('/shared/apps/common/lmod/scripts/init')
from lmod_python import module