public static ResourceFile fromPathString(String path) {
		ResourceFile resourceFile = null;
		if (path.startsWith(GHIDRA_HOME)) {
			resourceFile = resolveGhidraHome(path);
		}
		else if (path.startsWith(USER_HOME)) {
			String userHome = System.getProperty("user.home");
			int length = USER_HOME.length();
			String relativePath = path.substring(length);
			resourceFile = new ResourceFile(new File(userHome + relativePath));
		}
		else {
			resourceFile = new ResourceFile(path);
		}
		if (OperatingSystem.CURRENT_OPERATING_SYSTEM == OperatingSystem.WINDOWS) {
			resourceFile = resourceFile.getCanonicalFile();
		}

		return resourceFile;
	}
Parse the path string <b>with path element placeholders</b>, such as 
{@link #GHIDRA_HOME}.
@param path the path

@return the path as a ResourceFile.
Ghidra/Framework/Generic/src/main/java/generic/util/Path.java