File: env_modules_python.py.in

package info (click to toggle)
lmod 6.6-0.2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 16,716 kB
  • ctags: 1,336
  • sloc: sh: 3,714; python: 967; makefile: 718; tcl: 695; perl: 495; csh: 85; ansic: 35
file content (7 lines) | stat: -rw-r--r-- 208 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
# -*- python -*-
import os, string
def module(command, *arguments):
  commands = os.popen('@PKG@/libexec/lmod python %s %s'\
                      % (command, string.join(arguments))).read()
  exec commands