ive gotten the path to some json files(views) with this, in the past, so idk if it still hold for the last updates, but i guess it should
from com.inductiveautomation.ignition.gateway import IgnitionGateway
context = IgnitionGateway.get()
pathToProjectFolder = str(context.systemManager.dataDir.absoluteFile).replace('\\','/') + '/projects'
pathToProject = pathToProjectFolder + "/" + system.perspective.getProjectInfo().name + "/com.inductiveautomation.perspective/views/"
(used it for finding translation keys)