Use os.path.dirname() instead of os.path.split(...)[0]

pull/3233/head
Aleksey Filippov 6 years ago committed by Jussi Pakkanen
parent 6585427a7d
commit fe215bb826
  1. 2
      ghwt.py

@ -55,7 +55,7 @@ def unpack(sproj, branch, outdir):
print(' expected:', dig)
print(' obtained:', should)
return 1
spdir = os.path.split(outdir)[0]
spdir = os.path.dirname(outdir)
ofilename = os.path.join(spdir, config['wrap-file']['source_filename'])
with open(ofilename, 'wb') as ofile:
ofile.write(us)

Loading…
Cancel
Save