Translate location into fullpath according asset specification.

    Might be package:path for package related paths, or simply path

    :param str location: resource location
    :returns: fullpath

    :rtype: str
771275
def _translate_config_path(location):
    
    # getting spec path
    package_name, filename = resolve_asset_spec(location.strip())
    if not package_name:
        path = filename
    else:
        package = __import__(package_name)
        path = os.path.join(package_path(package), filename)

    return path
819021
def get_location(opts=None, provider=None):
    '''
    
    '''
    if opts is None:
        opts = {}
    ret = opts.get('location')
    if ret is None and provider is not None:
        ret = provider.get('location')
    if ret is None:
        ret = get_region_from_metadata()
    if ret is None:
        ret = DEFAULT_LOCATION
    return ret
375331
def path_expand(cls, path):
        
        current_dir = "." + os.path.sep
        if path.startswith(current_dir):
            cwd = str(os.getcwd())
            path = path.replace(current_dir, cwd, 1)
        location = os.path.expandvars(os.path.expanduser(path))
        return location
27506
def relpath_to_site(lang, target_lang):
    '''
    '''
    path = _SITES_RELPATH_DB.get((lang, target_lang), None)
    if path is None:
        siteurl = _SITE_DB.get(lang, _MAIN_SITEURL)
        target_siteurl = _SITE_DB.get(target_lang, _MAIN_SITEURL)
        path = posixpath.relpath(get_site_path(target_siteurl),
                                 get_site_path(siteurl))
        _SITES_RELPATH_DB[(lang, target_lang)] = path
    return path
975735
def location(name, uri, default):
    """"""
    from .models import Location
    location = Location(name=name, uri=uri, default=default)
    db.session.add(location)
    db.session.commit()
    click.secho(str(location), fg='green')
739836
def make_full_qualified_url(self, path: str) -> str:
        
        return self.application_uri.rstrip('/') + '/' + path.lstrip('/')
393610
def filePath(self, index):
        
        return self._fs_model_source.filePath(
            self._fs_model_proxy.mapToSource(index))
198418
function nodeAtLocation(location) {
        return exports.root.find(function each(n) {
            return n.isAtLocation(location, false);
        });
    }
1018045
def path(self, path):
        
        if os.path.isabs(path):
            return path
        return os.path.join(self.location, path)
490247
public static XSLTTransformationFileSystem usingFilesystem(String location)
    {
        XSLTTransformation tansformation = new XSLTTransformation();
        tansformation.template = location;
        return tansformation;
    }
1330465
def _relativePath(self, fullPath):
        
        if fullPath is None:
            return None

        assert fullPath.startswith("/"), fullPath

        path = os.path.relpath(fullPath, self.userPath)

        if not path.startswith("../"):
            return path
        elif self.ignoreExtraVolumes:
            return None
        else:
            return fullPath
854636
def get_asset_location(element, attr):
    
    asset_location = re.match(r'^/?(static)?/?(.*)', element[attr],
                              re.IGNORECASE)

    # replace relative links i.e (../../static)
    asset_location = asset_location.group(2).replace('../', '')

    return asset_location
40816
function(location) {
			if (location.substr(contextPath.length).indexOf('/file/') === 0) {
				// Local workspace
				return location.substr(contextPath.length).split("/").slice(3).join('/')
			} else {
				// Shared workspace
				return location.substr(contextPath.length).split('/').slice(5).join('/');
			}
		}
589108
private IPath getAbsoluteLocation(IPath location) {
		if (location.isAbsolute())
			return location;

		IWorkspaceRoot root= ResourcesPlugin.getWorkspace().getRoot();
		if (location.segmentCount() >= 2 && !"..".equals(location.segment(0))) { //$NON-NLS-1$
			IFile file= root.getFile(location);
			IPath absolutePath= file.getLocation();
			if (absolutePath != null) {
				return absolutePath;
			}
		}
		// The path does not exist in the workspace (e.g. because there's no such project).
		// Fallback is to just append the path to the workspace root.
		return root.getLocation().append(location);

	}
1103063
def _get_fullpath(self, filepath):
        
        if filepath[0] == '/':
            return filepath
        return os.path.join(self._base_path, filepath)
600153
def get_asset_url(self, path):
		
		url = self.root_url + '/assets/' + path
		if path in self.asset_hash:
			url += '?' + self.asset_hash[path]
		return url
1020556
protected String determineLocation(String location) {
        if (existsInDefaultLocation(location)) {
            return defaultFolder() + location;
        }

        if (!existsInGivenLocation(location)) {
            throw new InvalidResourceLocation("Unable to locate " + location + ". " +
                "File does not exist also in default location " + defaultLocation());
        }

        return location;
    }