def _is_svc(svc_path):
 run_file = os.path.join(svc_path, 'run')
 if (os.path.exists(svc_path) and os.path.exists(run_file) and os.access(run_file, os.X_OK)):
  return True
 return False

def _is_svc ( svc_path ) : run_file = os . path . join ( svc_path , 'run' ) if ( os . path . exists ( svc_path ) and os . path . exists ( run_file ) and os . access ( run_file , os . X_OK ) ) : return True return False
return true if directory <svc_path> is really a service: file <svc_path>/run exists and is executable svc_path the directory to check for compatibility .