public static String getPathFromDomainFile(Program program) {
		DomainFile domainFile = program.getDomainFile();
		String path = domainFile.getPathname();
		int ind = path.length() - domainFile.getName().length();
		if (ind >= 0) {
			if (!path.substring(ind).equals(domainFile.getName())) {
				ind = -1;
			}
		}
		if (ind <= 0) {
			path = null;
		}
		else {
			path = path.substring(0, ind);
		}
		return path;
	}
Build an ExecutableRecord path from the domain file.
WARNING: Make sure the program has been saved previously before calling this, otherwise you get
an (inaccurate) result of "/"
@param program the current program
@return the path to this program within the repository as a string
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/query/GenSignatures.java