sarge.utils missing sys import

Issue #8 resolved
Former user created an issue

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)

  1. Vinay Sajip repo owner

    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.

  2. Log in to comment