Introduction of Start xx and End xxx

This patch fix #644
This commit is contained in:
funilrys 2018-06-09 11:35:48 +02:00
parent e39887e34f
commit 6de96c5537
No known key found for this signature in database
GPG Key ID: 0D8BFEF5515C00C6

View File

@ -632,8 +632,12 @@ def create_initial_file():
# spin the sources for the base file
for source in recursive_glob(settings["datapath"],
settings["hostfilename"]):
start = "# Start {}\n".format(os.path.basename(os.path.dirname(source)))
end = "# End {}\n".format(os.path.basename(os.path.dirname(source)))
with open(source, "r") as curFile:
write_data(merge_file, curFile.read())
write_data(merge_file, start + curFile.read() + end)
# spin the sources for extensions to the base file
for source in settings["extensions"]: