build-common

Shared build system code (usually as a git submodule)
Log | Files | Refs | README | LICENSE

commit cadf5c69fbe8ff4b3aaafd0a9318c6237e250d49
parent 35fb3083162bf7d3f10f722af76f97b5d6764ec5
Author: ng0 <ng0@n0.is>
Date:   Fri,  4 Oct 2019 13:54:37 +0000

f-strings + writelines

Diffstat:
Mconfigure.py | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/configure.py b/configure.py @@ -79,9 +79,9 @@ def main(): myprefix = mylist[0] yarnexe = mylist[1] f = open('config.mk', 'w+') - f.write('# this file is autogenerated by ./configure\n') - f.write('prefix=' + myprefix + '\n') - f.write('yarnexe=' + yarnexe + '\n') + f.writelines(['# this file is autogenerated by ./configure\n', + 'prefix={myprefix}\n', + 'yarnexe={yarnexe}\n']) f.close()