summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2011-07-07 17:18:50 -0500
committerSol Jerome <sol.jerome@gmail.com>2011-07-07 17:18:50 -0500
commit7c3916355fc3140904fe9baf41604886ed539329 (patch)
treee7607edb9de5f4fbe10950144a9630285d9b4539 /src
parent033e78d1bba3038a126233520c7b84bc81166d45 (diff)
downloadbcfg2-7c3916355fc3140904fe9baf41604886ed539329.tar.gz
bcfg2-7c3916355fc3140904fe9baf41604886ed539329.tar.bz2
bcfg2-7c3916355fc3140904fe9baf41604886ed539329.zip
Revert "Add Environment.py file for building classes to gather env data."
This reverts commit 146a7a633bc3a36de21f589af0eec10755b0cae5. We don't really need this since we have already solved the version bits using sys.hexversion where needed. Also, this won't work on python3, so we won't be able to use it there.
Diffstat (limited to 'src')
-rw-r--r--src/lib/Environment.py37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/lib/Environment.py b/src/lib/Environment.py
deleted file mode 100644
index 782407ee2..000000000
--- a/src/lib/Environment.py
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/usr/bin/env python
-# encoding: utf-8
-"""
-Environment.py
-
-Classes for easy access to python environment information (e.g. python version).
-"""
-
-import sys
-import os
-
-class Pyversion():
-
- def __init__(self):
- # This is only helpful for Python 2 and older. Python 3 has sys.version_info.major.
- [self.major, self.minor, self.micro, self.releaselevel, self.serial] = sys.version_info
- self.version = sys.version
- self.hex = sys.hexversion
-
-
-def main():
- # test class Pyversion
- pyversion = Pyversion()
- print "%s : %s" % ("major", pyversion.major)
- print "%s : %s" % ("minor", pyversion.minor)
- print "%s : %s" % ("micro", pyversion.micro)
- print "%s : %s" % ("releaselevel", pyversion.releaselevel)
- print "%s : %s" % ("serial", pyversion.serial)
- print "%s : %s" % ("version", pyversion.version)
- print "%s : %s" % ("hex", pyversion.hex)
-
- pass
-
-
-if __name__ == '__main__':
- main()
-