Skip to content

ben-albrecht/environmentmodules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

environmentmodules

Python interface for Environment Modules

Why?

I needed to test some modulefiles, and found the builtin python module insufficient, so I created this as a cleaner interface with a more reasonable build process.

Example

import environmentmodules as mod

# module load gcc/3.1.1
mod.load('gcc/3.1.1')

mod.switch('gcc', 'gcc/3.2.0')

mod.unload('gcc')

if mod.isloaded('gcc-5'):
    print('gcc-5 loaded successfully!')

Releases

No releases published

Packages

No packages published

Languages