From 04f0fe9063b90de7c8f9210b7c557ad35706b300 Mon Sep 17 00:00:00 2001 From: Johnshall <71166067+Johnshall@users.noreply.github.com> Date: Mon, 10 Oct 2022 23:05:31 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=A9=20Remove=20head=20from=20sr=5Fad?= =?UTF-8?q?=5Fonly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- factory/build_confs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/factory/build_confs.py b/factory/build_confs.py index 7b3844d..20fd148 100644 --- a/factory/build_confs.py +++ b/factory/build_confs.py @@ -74,7 +74,9 @@ for conf_name in confs_names: file_template = open('template/'+conf_name+'.txt', 'r', encoding='utf-8') template = file_template.read() - template = str_head + template + str_foot + template = template + str_foot + if conf_name != 'sr_ad_only': + template = str_head + template file_output = open('../'+conf_name+'.conf', 'w', encoding='utf-8')