Lines Matching full:os
17 import os
23 if not os.getenv("PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION"):
24 os.putenv("PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION", "python")
25 os.environ["PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION"] = "python"
83 import os.path
1903 noext = os.path.splitext(incfile)[0]
2242 import os.path
2351 optfilename = options.options_file % os.path.splitext(filename)[0]
2359 if os.path.isfile(os.path.join(p, optfilename)):
2360 optfilename = os.path.join(p, optfilename)
2409 noext = os.path.splitext(filename)[0]
2414 headerbasename = os.path.basename(headername)
2447 if options.output_dir and not os.path.exists(options.output_dir):
2459 tmpname = os.path.join(tmpdir, os.path.basename(filename) + ".pb")
2489 (os.path.join(base_dir, results['headername']), results['headerdata']),
2490 (os.path.join(base_dir, results['sourcename']), results['sourcedata']),
2498 dirname = os.path.dirname(path)
2499 if dirname and not os.path.exists(dirname):
2500 os.makedirs(dirname)
2510 import os, msvcrt
2512 msvcrt.setmode(sys.stdin.fileno(), os.O_BINARY)
2513 msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
2554 import os.path
2555 options.options_path.append(os.path.dirname(request.file_to_generate[0]))