src/tools/Package-All.py [127:148]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                    modules_to_be_merged.insert(0, file_path)
                else:
                    if len(modules_to_be_merged) > 0 and '__main__.py' in modules_to_be_merged[-1]:
                        modules_to_be_merged.insert(-1, file_path)
                    else:
                        modules_to_be_merged.append(file_path)
        for python_module in modules_to_be_merged:
            print(format(os.path.basename(python_module)), end=', ')
            imports, codes = read_python_module(source_code_path, python_module)
            GLOBAL_IMPORTS.update(imports)
            write_merged_code(codes, merged_file_full_path)
        print("<end>")

        print('\n========== Prepend all import statements\n')
        insert_imports(GLOBAL_IMPORTS, merged_file_full_path)
        insert_imports(VERY_FIRST_IMPORTS, merged_file_full_path)

        print('========== Set Copyright, Version and Environment. Also enforce UNIX-style line endings.\n')
        insert_copyright_notice(merged_file_full_path, merged_file_name)
        timestamp = datetime.datetime.utcnow().strftime("%y%m%d-%H%M")
        replace_text_in_file(merged_file_full_path, '[%exec_name%]', merged_file_name.split('.')[0])
        replace_text_in_file(merged_file_full_path, '[%exec_sub_ver%]', timestamp)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/tools/Package-Core.py [132:153]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                    modules_to_be_merged.insert(0, file_path)
                else:
                    if len(modules_to_be_merged) > 0 and '__main__.py' in modules_to_be_merged[-1]:
                        modules_to_be_merged.insert(-1, file_path)
                    else:
                        modules_to_be_merged.append(file_path)
        for python_module in modules_to_be_merged:
            print(format(os.path.basename(python_module)), end=', ')
            imports, codes = read_python_module(source_code_path, python_module)
            GLOBAL_IMPORTS.update(imports)
            write_merged_code(codes, merged_file_full_path)
        print("<end>")

        print('\n========== Prepend all import statements\n')
        insert_imports(GLOBAL_IMPORTS, merged_file_full_path)
        insert_imports(VERY_FIRST_IMPORTS, merged_file_full_path)

        print('========== Set Copyright, Version and Environment. Also enforce UNIX-style line endings.\n')
        insert_copyright_notice(merged_file_full_path, merged_file_name)
        timestamp = datetime.datetime.utcnow().strftime("%y%m%d-%H%M")
        replace_text_in_file(merged_file_full_path, '[%exec_name%]', merged_file_name.split('.')[0])
        replace_text_in_file(merged_file_full_path, '[%exec_sub_ver%]', timestamp)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



