def _ResolvePath(included_from, included_path, basepath):
 python_lib = '$PYTHON_LIB'
 appscale_server = '/root/appscale/AppServer'
 included_from = included_from.replace(python_lib, appscale_server)
 included_path = included_path.replace(python_lib, appscale_server)
 basepath = basepath.replace(python_lib, appscale_server)
 path = os.path.join(os.path.dirname(included_from), included_path)
 if (not _IsFileOrDirWithFile(path)):
  path = os.path.join(basepath, included_path)
  if (not _IsFileOrDirWithFile(path)):
   path = included_path
   if (not _IsFileOrDirWithFile(path)):
    return ''
 if os.path.isfile(path):
  return os.path.normcase(os.path.abspath(path))
 return os.path.normcase(os.path.abspath(os.path.join(path, 'include.yaml')))

def _ResolvePath ( included_from , included_path , basepath ) : python_lib = '$PYTHON_LIB' appscale_server = '/root/appscale/AppServer' included_from = included_from . replace ( python_lib , appscale_server ) included_path = included_path . replace ( python_lib , appscale_server ) basepath = basepath . replace ( python_lib , appscale_server ) path = os . path . join ( os . path . dirname ( included_from ) , included_path ) if ( not _IsFileOrDirWithFile ( path ) ) : path = os . path . join ( basepath , included_path ) if ( not _IsFileOrDirWithFile ( path ) ) : path = included_path if ( not _IsFileOrDirWithFile ( path ) ) : return '' if os . path . isfile ( path ) : return os . path . normcase ( os . path . abspath ( path ) ) return os . path . normcase ( os . path . abspath ( os . path . join ( path , 'include.yaml' ) ) )
gets the absolute path of the file to be included .