summaryrefslogtreecommitdiff
path: root/configure.py
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-10-04 13:54:37 +0000
committerng0 <ng0@n0.is>2019-10-04 13:54:37 +0000
commitcadf5c69fbe8ff4b3aaafd0a9318c6237e250d49 (patch)
tree7b2d00c46477c4c73d922ab4bd7151a33a858800 /configure.py
parent35fb3083162bf7d3f10f722af76f97b5d6764ec5 (diff)
downloadbuild-common-cadf5c69fbe8ff4b3aaafd0a9318c6237e250d49.tar.gz
build-common-cadf5c69fbe8ff4b3aaafd0a9318c6237e250d49.tar.bz2
build-common-cadf5c69fbe8ff4b3aaafd0a9318c6237e250d49.zip
f-strings + writelines
Diffstat (limited to 'configure.py')
-rw-r--r--configure.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.py b/configure.py
index cb92e0d..35edac0 100644
--- 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()