Commit 0989a478 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Scripts:

- Updated file mode update in update_license_headers.py script
parent 1e84d8c0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -87,6 +87,7 @@ def process_file(

    temp_file_path = file_path + '.temp'
    replaced = False
    file_mode = os.stat(file_path)
    try:
        with open(file_path, encoding='UTF-8') as source:
            with open(temp_file_path, 'w', encoding='UTF-8') as target:
@@ -103,6 +104,7 @@ def process_file(
        file_updated.write(file_path + '\n')

    os.rename(temp_file_path, file_path)
    os.chmod(file_path, file_mode)

def main() -> int:
    with open(FILE_PATH_NO_HEADER, 'w', encoding='UTF-8') as file_no_header: