def do_with_python(python, cmdline, runas=None):
 if python:
  cmd = 'PYENV_VERSION={0} {1}'.format(python, cmdline)
 else:
  cmd = cmdline
 return do(cmd, runas=runas)

def do_with_python ( python , cmdline , runas = None ) : if python : cmd = 'PYENV_VERSION={0} {1}' . format ( python , cmdline ) else : cmd = cmdline return do ( cmd , runas = runas )
execute a python command with pyenvs shims using a specific python version .