Lines Matching refs:os
18 import os
30 if 'PROTOC' in os.environ and os.path.exists(os.environ['PROTOC']):
31 protoc = os.environ['PROTOC']
44 if not os.path.exists(proto_path):
48 if not os.path.exists(output_dir):
49 os.mkdirs(output_dir)
50 elif not os.path.isdir(output_dir):
54 input_dir = os.path.dirname(proto_path)
55 output_filename = os.path.basename(proto_path).replace('.proto', '_pb2.py')
56 output_path = os.path.join(output_dir, output_filename)
64 output_module_name = os.path.splitext(output_filename)[0]
98 os.system('adb wait-for-device')