Skip to content

Commit

Permalink
fixup! don't chdir; should fix #26 (where adb.exe is in the current d…
Browse files Browse the repository at this point in the history
…irectory but not in PATH)
  • Loading branch information
dlenski committed Sep 18, 2016
1 parent 9b1e9be commit fc4905a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tetherback/tetherback.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def backup_partition(adb, pi, bp, transport, backupdir, verify=True):
localmd5 = localmd5.hexdigest()
if devicemd5 != localmd5:
raise RuntimeError("md5sum mismatch (local %s, device %s)" % (localmd5, devicemd5))
with open(bp.fn+'.md5', 'w') as md5out:
with open(os.path.join(backupdir, bp.fn+'.md5'), 'w') as md5out:
print('%s *%s' % (localmd5, bp.fn), file=md5out)

child.wait()
Expand Down

0 comments on commit fc4905a

Please sign in to comment.