Lines Matching refs:os
18 import os
31 if 'PROTOC' in os.environ and os.path.exists(os.environ['PROTOC']):
32 protoc = os.environ['PROTOC']
43 if not os.path.exists(proto_path):
47 if not os.path.exists(output_dir):
48 os.mkdirs(output_dir)
49 elif not os.path.isdir(output_dir):
52 input_dir = os.path.dirname(proto_path)
53 output_filename = os.path.basename(proto_path).replace('.proto', '_pb2.py')
54 output_path = os.path.join(output_dir, output_filename)
59 output_module_name = os.path.splitext(output_filename)[0]
93 os.system('adb wait-for-device')