• Home
  • Raw
  • Download

Lines Matching refs:os

22 import os
39 output_dir = os.path.dirname(output_file)
40 output_file_name = os.path.basename(output_file)
45 new_module_name_output_file = os.path.join(
64 abc_path = os.path.join(uncompressed_output_file, 'ets')
65 modules_abc_path = os.path.join(abc_path, 'modules.abc')
67 if not modules_pa or not os.path.exists(modules_pa):
95 1].lstrip(os.path.sep)
116 name, ext = os.path.splitext(file)
122 cache_path = os.path.join(
127 cache_path = os.path.join(
132 for root, dirs, files in os.walk(cache_path):
136 file_absolute_path = os.path.join(root, file)
137 file_relative_path = os.path.relpath(
139 backup_file = os.path.join(backup_path, file_relative_path)
141 if not os.path.exists(backup_file):
187 modify_file = os.path.join(task.path, *modify_file_item)
198 modified_files = [os.path.join(*modify_file_item)]
211 modify_file = os.path.join(task.path, *modify_file_item)
215 modify_dir = os.path.dirname(modify_file)
226 new_file = os.path.join(modify_dir, new_file_name)
243 modified_files = [os.path.join(*modify_file_item)]
248 os.remove(new_file)
262 modified_files = [os.path.join(*modify_file_item)]
286 profile_file = os.path.join(task.path, 'build-profile.json5')
300 config_file_dir = os.path.join(task.path, *entry_item, 'src', 'main')
301 config_file = os.path.join(config_file_dir, 'module.json5')
438 modify_file = os.path.join(task.path, *modify_file_item)
473 profile_file = os.path.join(
528 output_dir = os.path.dirname(output_file)
529 output_file_name = os.path.basename(output_file)
538 output_dir_items = output_dir.split(os.path.sep)
542 output_dir_items.insert(1, os.path.sep)
544 output_dir_items.insert(0, os.path.sep)
545 ohos_test_output_file = os.path.join(
562 ark_disasm_10_path = os.path.join(sdk_path, '10', 'toolchains', ark_disasm)
563 ark_disasm_9_path = os.path.join(sdk_path, '9', 'toolchains', ark_disasm)
564 if os.path.exists(ark_disasm_10_path):
566 elif os.path.exists(ark_disasm_9_path):
590 if not os.path.exists(pa_file):
612 for root, dirs, files in os.walk(uncompressed_output_path):
615 abc_files.append(os.path.join(root, file))
619 total_size += os.path.getsize(
620 os.path.join(uncompressed_output_path, file))
637 if not os.path.exists(os.path.join(uncompressed_output_path, sourcemap_file)):
646 abc_generated_path = os.path.join(uncompressed_output_path, 'ets')
648 modules_abc_path = os.path.join(abc_generated_path, 'modules.abc')
649 if not os.path.exists(modules_abc_path):
654 modules_abc_size = os.path.getsize(modules_abc_path)
666 widget_abc_path = os.path.join(abc_generated_path, 'widgets.abc')
667 if not os.path.exists(widget_abc_path):
672 widgets_abc_size = os.path.getsize(widget_abc_path)
686 sourcemap_path = os.path.join(
688 sourcemap_file = os.path.join(sourcemap_path, 'sourceMaps.map')
689 if not os.path.exists(sourcemap_file):
718 output_file = os.path.join(
721 output_file = os.path.join(
734 if not os.path.exists(output_file):
812 hvigor = os.path.join(project_path, 'hvigorw.bat')
814 hvigor = os.path.join(project_path, 'hvigorw')
887 if not os.path.exists(backup_path):
888 os.mkdir(backup_path)
894 backup_output_path = os.path.join(backup_path, 'output', 'debug')
895 if not os.path.exists(backup_output_path):
896 os.makedirs(backup_output_path)
902 backup_output_path = os.path.join(backup_path, 'output', 'release')
903 if not os.path.exists(backup_output_path):
904 os.makedirs(backup_output_path)
908 backup_output = os.path.join(
909 backup_output_path, os.path.basename(output_file))
921 if not os.path.exists(backup_path):
922 os.mkdir(backup_path)
924 backup_cache_path = os.path.join(backup_path, 'cache')
925 if not os.path.exists(backup_cache_path):
926 os.mkdir(backup_cache_path)
927 cache_files = os.path.join(
934 cache_files = os.path.join(cache_files, 'debug')
935 backup_cache_file = os.path.join(backup_cache_path, 'debug')
942 cache_files = os.path.join(cache_files, 'release')
943 backup_cache_file = os.path.join(backup_cache_path, 'release')
982 if os.path.exists(task.backup_info.cache_path):