summaryrefslogtreecommitdiff
path: root/bin/generate-flaskserverport-file
blob: d13239e9a75da046706b8ccf5c2db15ef1edf349 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env python

import os
from json import dump
from os.path import dirname

path = os.path.join(dirname(dirname(__file__)), 'electron', 'src', 'lib', 'flaskserverport.json')

data = {"_comment1" : "port should not be declared when commiting"}
# write data to font.json into the same directory as the font file
with open(path, 'w', encoding="utf8") as output:
    dump(data, output, indent=4, ensure_ascii=False)