• Home
  • Raw
  • Download

Lines Matching refs:os

24 import os
25 import os.path
33 return os.path.dirname(os.path.realpath(__file__))
90 arch_dir = os.path.join(get_script_dir(), "bin", "android", arch)
91 if not os.path.isdir(arch_dir):
93 binary_path = os.path.join(arch_dir, binary_name)
94 if not os.path.isfile(binary_path):
100 dirname = os.path.join(get_script_dir(), 'bin')
106 dirname = os.path.join(dirname, 'windows')
110 dirname = os.path.join(dirname, 'darwin')
112 dirname = os.path.join(dirname, 'linux')
113 dirname = os.path.join(dirname, 'x86_64' if sys.maxsize > 2 ** 32 else 'x86')
114 binary_path = os.path.join(dirname, binary_name)
115 if not os.path.isfile(binary_path):
189 path_in_ndk = path_in_ndk.replace('/', os.sep)
193 path = os.path.join(ndk_path, path_in_ndk)
198 path = os.path.join('..', path_in_ndk)
203 home = os.environ.get('HOMEPATH') if is_windows() else os.environ.get('HOME')
205 default_ndk_path = os.path.join(home, DEFAULT_NDK_PATH[platform].replace('/', os.sep))
206 path = os.path.join(default_ndk_path, path_in_ndk)
340 if os.path.isfile(dir_or_file):
341 os.remove(dir_or_file)
342 elif os.path.isdir(dir_or_file):
364 if os.path.isfile(path):
376 tmp_path = os.path.join(binary_cache_path, dso_path_in_record_file[1:])
614 ext = os.path.splitext(filename)[1]
624 for parent, _, file_names in os.walk(source_dir):
636 abstract_path = abstract_path.replace('/', os.sep)
637 abstract_parent, file_name = os.path.split(abstract_path)
645 length = len(os.path.commonprefix((real_rparent, abstract_rparent)))
651 return os.path.join(best_matched_rparent[::-1], file_name)
780 path = os.path.realpath(arg)
781 if not os.path.isdir(path):
794 path = os.path.realpath(arg)
795 if not os.path.isfile(path):