Lines Matching full:os
35 import os.path
54 p = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', '..'))
55 if os.path.isdir(p) and os.path.isfile(os.path.join(p, 'pb.h')):
79 …generator_cmd = os.path.join(env['NANOPB'], 'generator-bin', 'nanopb_generator' + env['PROGSUFFIX'…
80 if os.path.exists(generator_cmd):
85 …return env['PYTHON'] + " " + env['ESCAPE'](os.path.join(env['NANOPB'], 'generator', 'nanopb_genera…
94 p1 = os.path.join(n, 'generator-bin', 'protoc' + env['PROGSUFFIX'])
95 if os.path.exists(p1):
99 p = os.path.join(n, 'generator', 'protoc')
100 if os.path.exists(p):
122 p1 = os.path.join(n, 'generator', 'protoc' + env['PROGSUFFIX'])
123 p2 = os.path.join(n, 'generator-bin', 'protoc' + env['PROGSUFFIX'])
130 … return e('--plugin=protoc-gen-nanopb=' + os.path.join(n, 'generator', 'protoc-gen-nanopb.bat'))
132 return e('--plugin=protoc-gen-nanopb=' + os.path.join(n, 'generator', 'protoc-gen-nanopb'))
138 prefix = os.path.dirname(str(source[-1]))
139 srcfile = esc(os.path.relpath(str(source[0]), prefix))
143 if not os.path.isabs(d): d = os.path.relpath(d, prefix)
147 source_extension = os.path.splitext(str(target[0]))[1]
159 basename = os.path.splitext(str(source[0]))[0]
160 source_extension = os.path.splitext(str(target[0]))[1]
170 if os.path.exists(basename + '.options'):
197 env.SetDefault(PROTOCPATH = [".", os.path.join(env['NANOPB'], 'generator', 'proto')])