conda_subprocess.interface.check_call

Contents

conda_subprocess.interface.check_call#

conda_subprocess.interface.check_call(*popenargs, **kwargs)[source]#

Run command with arguments. Wait for command to complete. If the exit code was zero then return, otherwise raise CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute.

The arguments are the same as for the call function, including the additional prefix_name/prefix_path keyword arguments used to select the target conda environment. Example:

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