def install_le_auto(contents, venv_dir):
 venv_le_auto_path = join(venv_dir, 'letsencrypt-auto')
 with open(venv_le_auto_path, 'w') as le_auto:
  le_auto.write(contents)
 chmod(venv_le_auto_path, (S_IRUSR | S_IXUSR))

def install_le_auto ( contents , venv_dir ) : venv_le_auto_path = join ( venv_dir , 'letsencrypt-auto' ) with open ( venv_le_auto_path , 'w' ) as le_auto : le_auto . write ( contents ) chmod ( venv_le_auto_path , ( S_IRUSR | S_IXUSR ) )
install some given source code as the letsencrypt-auto script at the root level of a virtualenv .