Skip to content

Instantly share code, notes, and snippets.

View opoplawski's full-sized avatar

Orion Poplawski opoplawski

  • NWRA
  • Boulder, CO
View GitHub Profile
@opoplawski
opoplawski / createmodule.py
Created August 29, 2013 21:22
Python script to generate environment module files from environment init scripts
#!/usr/bin/python
#
# createmodule.py - Takes the name of a environment init script and
# produces a modulefile that duplicates the changes made by the init script
#
# Copyright (C) 2012 by Orion E. Poplawski <orion@cora.nwra.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or