(root_dir, imp_mods)
| 304 | |
| 305 | |
| 306 | def WriteCodeFile(root_dir, imp_mods): |
| 307 | |
| 308 | if not os.path.exists(root_dir): |
| 309 | os.mkdir(root_dir) |
| 310 | |
| 311 | for mod_name in imp_mods: |
| 312 | mod_folder = GetModFolderName(mod_name) |
| 313 | mod_folder = os.path.join(root_dir, mod_folder) |
| 314 | if not os.path.exists(mod_folder): |
| 315 | os.mkdir(mod_folder) |
| 316 | |
| 317 | mod_h, mod_cpp, mod_exp_cpp = GetCodeFileNames(mod_name) |
| 318 | fname_h = os.path.join(mod_folder, mod_h) |
| 319 | fname_cpp = os.path.join(mod_folder, mod_cpp) |
| 320 | fname_exp = os.path.join(mod_folder, mod_exp_cpp) |
| 321 | |
| 322 | # if not os.path.exists(fname_h) and not os.path.exists(fname_cpp): |
| 323 | if True: |
| 324 | lib_dic = imp_mods[mod_name] |
| 325 | WriteSourceFiles(fname_h, fname_cpp, fname_exp, mod_name, lib_dic) |
| 326 | |
| 327 | |
| 328 | def Main(): |
no test coverage detected