Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fxload in debian is in /sbin, that's not guaranteed to be on PATH
  • Loading branch information
stefanor committed Nov 20, 2016
1 parent 2a9bf59 commit c1b1208
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hdmi2usb/modeswitch/boards.py
Expand Up @@ -122,8 +122,12 @@ def load_fx2(board, mode=None, filename=None, verbose=False):
if verbose:
sys.stderr.write("Running %r\n" % " ".join(cmdline))

env = os.environ.copy()
env['PATH'] = env['PATH'] + ':/usr/sbin:/sbin'

try:
output = subprocess.check_output(cmdline, stderr=subprocess.STDOUT)
output = subprocess.check_output(cmdline, stderr=subprocess.STDOUT,
env=env)
except subprocess.CalledProcessError as e:
if b"can't modify CPUCS: Protocol error\n" not in e.output:
print(e.output)
Expand Down

0 comments on commit c1b1208

Please sign in to comment.