An improvement on @Oswin's solution. This works for me. Replace conda list
with your own command after testing.
import sys
import subprocess
executable = sys.executable
conda_init_shell = '/'.join([*executable.split('/')[:-4], 'etc/profile.d/conda.sh'])
conda_init_shell
cmd = f'. {conda_init_shell} && conda activate YOUR-ENVIORONMENT-HERE && conda list'
subprocess.run(cmd, shell=True)