summaryrefslogtreecommitdiff
path: root/ghwt.py
diff options
context:
space:
mode:
authorAleksey Filippov <alekseyf@google.com>2018-03-12 18:06:38 +0000
committerJussi Pakkanen <jpakkane@gmail.com>2018-03-12 23:03:10 +0200
commitfe215bb82675c3c83d3367ab7cfc39f5c785f6f9 (patch)
tree47a6f1df6fc4896043ac31287384f6776ec9ef16 /ghwt.py
parent6585427a7d03e32770769863e1ae8902d4480745 (diff)
downloadmeson-fe215bb82675c3c83d3367ab7cfc39f5c785f6f9.tar.gz
Use os.path.dirname() instead of os.path.split(...)[0]
Diffstat (limited to 'ghwt.py')
-rwxr-xr-xghwt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ghwt.py b/ghwt.py
index bf06e19d9..32db4be40 100755
--- a/ghwt.py
+++ b/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)