def GetRoot(self):
    rootdir = self.dirname
    tryfile = None
    while rootdir != '/':
      tryfile = os.path.join(rootdir, 'app.yaml')
      if not os.path.exists(tryfile):
        rootdir = os.path.dirname(rootdir)
      else:
        break
    if rootdir != '/':
      logging.info('Application Root directory: %s', rootdir)
      return rootdir
    else:
      if os.path.exists('/app.yaml'):
        logging.info('Application Root directory: %s', rootdir)
        return rootdir
      else:
        logging.error('No parent directory has app.yaml!')
        return None
Save paramers to ``filename`` (in JSON format)
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/analytics/main.py/StatsPage.GetRoot--crossover with--dataset/ETHPy150Open seanbell/intrinsic/bell2014/params.py/IntrinsicParameters.save