aboutsummaryrefslogtreecommitdiff
path: root/ghwt.py
diff options
context:
space:
mode:
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 bf06e19..32db4be 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)