Generate version file.
59def generate_version_file(s_filename: str, s_workpath: str) -> None:
60 """!
61 @brief Generate version file
62 @param s_filename : version file name
63 @param s_workpath : workpath
64 """
65 s_version_file = os.path.join(s_workpath, s_filename)
66 log.info("Generate version file %s (Version: %s)", s_version_file, __version__)
67 if not os.path.exists(s_workpath):
68 os.mkdir(s_workpath)
69 else:
70 log.info("Directory %s already exists", s_workpath)
71 with open(s_version_file, mode="w", encoding="utf-8") as version_file:
72 version_file.write(str(versionInfo))
73
74