Closed nim65s closed 7 years ago
Thank you. However, it does not work with python2 anymore. It seems that "future" is not defined, unless another package is required.
You are right, "pip install future" would be required in this case. The alternatives are :
#!/usr/bin/env python2
try: # python2
from commands import getstatusoutput
except: # python3
from subprocess import getstatusoutput
Which one do you prefer ?
Has this been tested by someone ? I see no objection to merging it.
I rebased your work on devel
and on version-3
branches. Thanks !
/usr/bin/python
may be python2 or python3 depending on the distribution, so we should ensure that this script would work on both.