Lines Matching refs:path
32 site.addsitedir(os.path.join(os.path.dirname(__file__), '../lib'))
36 THIS_DIR = os.path.dirname(__file__)
37 ANDROID_TOP = os.path.realpath(os.path.join(THIS_DIR, '../../..'))
151 def check_packages(path, packages): argument
154 package_path = os.path.join(path, package + '.zip')
155 if not os.path.exists(package_path):
161 components = os.path.split(f)
174 def extract_all(path, packages, out_dir): argument
178 package_path = os.path.join(path, package + '.zip')
179 install_dir = os.path.join(out_dir, extract_path)
181 if os.path.exists(install_dir):
197 parent_dir = os.path.dirname(install_dir)
198 if not os.path.exists(parent_dir):
200 shutil.move(os.path.join(extract_dir, dirs[0]), install_dir)
212 gnustl_path = os.path.join(out_dir, 'sources/cxx-stl/gnu-libstdc++')
213 shutil.move(os.path.join(gnustl_path, '4.9/Android.mk'),
214 os.path.join(gnustl_path, 'Android.mk'))
225 with open(os.path.join(out_dir, 'ndk-build.cmd'), 'w') as helper:
233 file_path = os.path.join(out_dir, 'ndk-build')
245 path = os.path.join(out_dir, 'source.properties')
246 with open(path, 'w') as source_properties:
260 extract_dir = os.path.join(temp_dir, release_name)
261 if os.path.exists(extract_dir):
271 package_path = os.path.join(out_dir, package_name)
273 files = os.path.relpath(extract_dir, temp_dir)
288 package_path = os.path.realpath(package_path)
318 '--dist-dir', type=os.path.realpath,
338 if os.path.exists(args.out_dir) and args.unpack: