From 4e170493c7c1a1b27376531f9b7bbcf498f84753 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Mon, 15 Feb 2021 08:45:10 +1300 Subject: [PATCH] Add warning file to generated folders --- script/generate.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/script/generate.py b/script/generate.py index b382dbd..e03b762 100755 --- a/script/generate.py +++ b/script/generate.py @@ -38,6 +38,10 @@ def main(args): for file_, conf_ in copyf.items(): copyfile(templ / file_, dir_ / file_) + path = dir_ / 'FILES ARE GENERATED DO NOT EDIT' + with open(path, 'w') as f: + f.write("Any edits should be made to the files in the 'template' directory") + if channel == Channel.dev: path = dir_ / 'build.json' build_conf = {