def get_env(self, extend_os_environ=True):
        if extend_os_environ:
            res = os.environ.copy()
        else:
            res = dict()
        if os.name == 'nt':
            dlls_paths = self._get_dll_paths()
            res["PATH"] = ";".join(dlls_paths) + ";" + os.environ["PATH"]
        else:
            lib_paths = self._get_lib_paths()
            if sys.platform.startswith("linux"):
                res["LD_LIBRARY_PATH"] = os.path.pathsep.join(lib_paths)
            if sys.platform == "darwin":
                res["DYLD_LIBRARY_PATH"] = os.path.pathsep.join(lib_paths)
                res["DYLD_FRAMEWORK_PATH"] = os.path.pathsep.join(
                        self._get_framework_paths())
        if self.toolchain:
            python_package = self.toolchain.get_package("python", raises=False)
            if python_package:
                if sys.platform == "darwin":
                    res["PYTHONHOME"] = python_package.path + "/Python.framework/Versions/2.7"
                else:
                    res["PYTHONHOME"] = python_package.path
        res["QI_ADDITIONAL_SDK_PREFIXES"] = self.venv_path
        return res
Get an environment dictionary to help running binaries
dataset/ETHPy150Open aldebaran/qibuild/python/qibuild/worktree.py/BuildWorkTree.get_env