def check_ghp_import_installed():
 try:
  subprocess.check_output(['ghp-import', '-h'])
 except OSError:
  req_missing(['ghp-import2'], 'deploy the site to GitHub Pages')

def check_ghp_import_installed ( ) : try : subprocess . check_output ( [ 'ghp-import' , '-h' ] ) except OSError : req_missing ( [ 'ghp-import2' ] , 'deploy the site to GitHub Pages' )
check if ghp-import is installed .