def app_is_deployed(app_id):
 if (not os.path.exists('{0}{1}/'.format(_APPS_LOCATION, app_id))):
  logging.error('Seems that "{0}" is not deployed.'.format(app_id))
  logging.info('Please deploy "{0}" and try again.'.format(app_id))
  return False
 return True

def app_is_deployed ( app_id ) : if ( not os . path . exists ( '{0}{1}/' . format ( _APPS_LOCATION , app_id ) ) ) : logging . error ( 'Seems that "{0}" is not deployed.' . format ( app_id ) ) logging . info ( 'Please deploy "{0}" and try again.' . format ( app_id ) ) return False return True
looks for the app directory in the deployed apps location .