conda_subprocess.interface.call

Contents

conda_subprocess.interface.call#

conda_subprocess.interface.call(*popenargs, timeout=None, **kwargs)[source]#

Run command with arguments. Wait for command to complete or timeout, then return the returncode attribute.

The arguments are the same as for the Popen constructor, including the additional prefix_name/prefix_path keyword arguments used to select the target conda environment (see conda_subprocess.process.Popen()). Example:

retcode = call([“ls”, “-l”], prefix_name=”py312”)