X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=wscript;h=4b4c1342ddf758efb72856fe27ed32af28dfed48;hb=e1b818fe3eb59d854c1b8b7951a8af58c3095ba2;hp=822a3b8696c1b4976043ad7a70617ec79688b207;hpb=65470d9a8ee57b19271f65324d7a8ab0c00960f2;p=dcpomatic.git diff --git a/wscript b/wscript index 822a3b869..4b4c1342d 100644 --- a/wscript +++ b/wscript @@ -224,7 +224,7 @@ def git_revision(): cmd = "LANG= git log --abbrev HEAD^..HEAD ." output = subprocess.Popen(cmd, shell=True, stderr=subprocess.STDOUT, stdout=subprocess.PIPE).communicate()[0].splitlines() o = output[0].decode('utf-8') - return o.replace ("commit ", "")[0:10] + return o.replace("commit ", "")[0:10] def dist(ctx): r = git_revision() @@ -243,7 +243,7 @@ def dist(ctx): def create_version_cc(version, cxx_flags): commit = git_revision() if commit is None and os.path.exists('.git_revision'): - f = open('.git_revision') + f = open('.git_revision', 'r') commit = f.readline().strip() if commit is None: