At the moment I'd need a way to locate .scheme and .schemedef files through PyPN scripts. It's easy to get scheme's name with CurrentScheme but I can't find a way to get the contents of that scheme (keywords, styles, etc.). Lexers must have the info I need but I doubt PyPN can communicate with them.
I did check the Windows registry but couldn't find PN installation directory from there. Besides CurrentScheme there seems to be no scheme related info available through PyPN. So it seems that my only choice is to parse .scheme files myself. I'm okay with that but is there a better way to locate them than manually adding a path to schemes directory to script?