INNER CODE UNIT · Python
all_sources
HyperionGameTech/HyperionEngine · Tools/Scripts/Misc/apply_license.py:13
all_sources = headers + sources
for item in all_sources:
if any([ex in item for ex in exclude]):
continue
f = open(item, 'r+')
# match for existing license by checking for /* \license and * \endlicense */
license_start = -1
license_end = -1
for i, line in enumerate(f):
# if '/*** ' in line:
# license_start = i
# if ' ***/' in line:
# license_end = i
if license_text in line: