Skip to content

Commit fc4905a

Browse files
committed
fixup! don't chdir; should fix #26 (where adb.exe is in the current directory but not in PATH)
1 parent 9b1e9be commit fc4905a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tetherback/tetherback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ def backup_partition(adb, pi, bp, transport, backupdir, verify=True):
290290
localmd5 = localmd5.hexdigest()
291291
if devicemd5 != localmd5:
292292
raise RuntimeError("md5sum mismatch (local %s, device %s)" % (localmd5, devicemd5))
293-
with open(bp.fn+'.md5', 'w') as md5out:
293+
with open(os.path.join(backupdir, bp.fn+'.md5'), 'w') as md5out:
294294
print('%s *%s' % (localmd5, bp.fn), file=md5out)
295295

296296
child.wait()

0 commit comments

Comments
 (0)