sarge.utils missing sys import
Issue #8
resolved
The which backport is not documented in sarge, but useful as a facility for python2 installs. Attempting to use it fails:
>>> import sarge
>>> sarge.which('gzip')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "sarge/utils.py", line 38, in which
if sys.platform == "win32":
NameError: global name 'sys' is not defined
Comments (2)
-
repo owner -
repo owner - changed status to resolved
Closes
#8: Added missing import.→ <<cset 6a2a9a0d846e>>
- Log in to comment
Thanks - I've just added it in (hence not public yet) and I haven't added tests or docs, yet. This will be sorted soon.