Lines Matching refs:path
35 if 'PROTOC' in os.environ and os.path.exists(os.environ['PROTOC']):
49 if not os.path.exists(proto_path):
53 if not os.path.exists(output_dir):
55 elif not os.path.isdir(output_dir):
59 input_dir = os.path.dirname(proto_path)
60 output_filename = os.path.basename(proto_path).replace('.proto', '_pb2.py')
61 output_path = os.path.join(output_dir, output_filename)
72 output_module_name = os.path.splitext(output_filename)[0]
90 tmp_proto_gen_file = os.path.join(tmp_dir, '%s.py' % module_name)
106 gen_filename = os.path.basename(proto_file).replace('.proto', '_pb2.py')
109 for path in gen_files:
110 if (os.path.basename(path) == gen_filename
111 and path.startswith(os.path.dirname(proto_file))):
112 gen_file = path
113 gen_files.remove(path)
117 for root, _, filenames in os.walk(os.path.dirname(proto_file)):
120 gen_file = os.path.join(root, filename)
132 protoc, '-I=%s' % os.path.dirname(proto_file),
133 '--python_out=%s' % os.path.dirname(gen_file), proto_file])
156 proto_files.append(os.path.abspath(f))
158 proto_gen_files.append(os.path.abspath(f))