Lines Matching full:os
7 import os
8 import os.path
20 mypath = os.path.dirname(sys.executable) # For pyInstaller
22 mypath = os.path.dirname(__file__)
25 env_paths = os.environ["PATH"].split(os.pathsep)
28 os.environ["PATH"] = os.pathsep.join(env_paths)
32 if os.path.isfile(os.path.join(mypath, "protoc-gen-nanopb.exe")):
33 protoc_gen_nanopb = os.path.join(mypath, "protoc-gen-nanopb.exe")
34 elif os.name == 'nt':
35 protoc_gen_nanopb = os.path.join(mypath, "protoc-gen-nanopb.bat")
37 protoc_gen_nanopb = os.path.join(mypath, "protoc-gen-nanopb")
41 if os.path.isfile(protoc_gen_nanopb):