From 2169ed92848ddecf284bfd12f89104cb750726ab Mon Sep 17 00:00:00 2001 From: Christopher Date: Thu, 23 Jun 2016 19:00:54 +0100 Subject: [PATCH] Removed add_header.py --- add_header.py | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 add_header.py diff --git a/add_header.py b/add_header.py deleted file mode 100644 index c553681f..00000000 --- a/add_header.py +++ /dev/null @@ -1,34 +0,0 @@ -import os - -notice = ( "/**\n" - " * This code is part of the Fungus library (http://fungusgames.com) maintained by Chris Gregan (http://twitter.com/gofungus).\n" - " * It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE)\n" - " */\n\n") - -exclude_paths = [ - "Assets/Fungus/Thirdparty/CSVParser/", - "Assets/Fungus/Thirdparty/iTween/", - "Assets/Fungus/Thirdparty/LeanTween/", - "Assets/Fungus/Thirdparty/Microsoft/", - "Assets/Fungus/Thirdparty/Usfxr/Editor/", - "Assets/Fungus/Thirdparty/Usfxr/Scripts/", - "Assets/UnityTestTools/" -] - -for root, dirs, files in os.walk("Assets"): - for file in files: - if file.endswith(".cs"): - - exclude = False - - file_path = os.path.join(root, file) - for exclude_path in exclude_paths: - - if file_path.startswith(exclude_path): - exclude = True - break - - if not exclude: - data = notice + open(file_path).read() - print data - open(file_path, "w").write(data)