INNER CODE UNIT · Python
sub_p
HyperionGameTech/HyperionEngine · Tools/Scripts/Misc/rename_files.py:106
sub_p = Path(sub_d) / upper_camel_case
# if not already_exists:
# to_rename[str(found_path)] = sub_p
if not f in include_changes:
include_changes[f] = {}
new_path = include_path.replace(sub_base, upper_camel_case)#str(sub_p) #sub_p.relative_to(sub_d))
replaced_str = re.sub(r'(#include [<\"])([\./\\A-Za-z0-9_-]*)([>\"])', '\\1{}\\3'.format(new_path), line)
print(replaced_str)
print(sub_p)
include_changes[f][line_num - 1] = (include_path, replaced_str)
return (to_rename, include_changes, all_not_found)