Lines Matching defs:os
10 # or http://www.opensolaris.org/os/licensing.
26 import os
73 cmddir, cmdname = os.path.split(sys.argv[0])
74 cmddir = os.path.realpath(cmddir)
76 if "ROOT" in os.environ:
77 pkg_path = os.environ["ROOT"]
88 pkg_path = os.path.realpath(pkg_path)
89 proto_area = os.path.realpath(proto_area)
91 pkgs = os.path.join(pkg_path, "usr/lib/python{0}/vendor-packages".format(
93 bins = os.path.join(pkg_path, "usr/bin")
101 if "PYTHONPATH" in os.environ:
102 pypath = os.pathsep + os.environ["PYTHONPATH"]
105 os.environ["PYTHONPATH"] = "." + os.pathsep + pkgs + pypath
107 os.environ["PATH"] = bins + os.pathsep + os.environ["PATH"]
113 os.environ["LC_ALL"] = "en_US.UTF-8"
118 for k in list(os.environ.keys()):
120 del os.environ[k]
125 os.environ["PACKAGE_MANAGER_ROOT"] = pkg_path