def set_python_env(prefix: str) -> None: """Set environment for a Python distribution. :param prefix: root directory of the python distribution """ import e3.env env = e3.env.Env() if sys.platform == "win32": # unix: no cover env.add_path(prefix) env.add_path(os.path.join(prefix, "Scripts")) else: env.add_path(os.path.join(prefix, "bin")) env.add_dll_path(os.path.join(prefix, "lib"))
def set_python_env(prefix): """Set environment for a Python distribution. :param prefix: root directory of the python distribution :type prefix: str """ import e3.env env = e3.env.Env() if sys.platform == 'win32': # unix: no cover env.add_path(prefix) env.add_path(os.path.join(prefix, 'Scripts')) else: env.add_path(os.path.join(prefix, 'bin')) env.add_dll_path(os.path.join(prefix, 'lib'))