an0malaus opened this issue on Dec 19, 2004 ยท 6 posts
ockham posted Sun, 19 December 2004 at 11:10 AM
On PC: The path itself is the same in both 4 and 5: it's a line in Poser.ini under runtime/prefs. I don't know if Mac would have the same. PYTHON_EDITOR_PATH "C:KEDITWkeditw32.exe" To catch the line: EdPath='' FileName=os.path.normpath('runtime/prefs/poser.ini') fp=open(FileName,'rt') while 1: ~st=fp.readline() ~if not st: break ~Parts=string.split(st) ~if (len(Parts)>1): ~~if string.count(Parts[0],'PYTHON_EDITOR_PATH'): ~~~EdPath=Parts[1] ~~~break fp.close()