[Zope] Re: Problem with external editor - SOS 2

fowlertrainer at anonym.hu fowlertrainer at anonym.hu
Wed Aug 18 04:44:48 EDT 2004


Hi !

The temp. solution is that:

import os

print os.path.expanduser("~")

f=open('C:/Program Files/ZopeExternalEditor/zopeedit.exe.old','rb')
data=f.read()
f.close()

p=data.find('~\ZopeEdit.ini')

if p==0:
   raise Exception,'Not found !'

data=data.replace('~\ZopeEdit.ini','c:\zope\ze.ini')

f=open('C:/Program Files/ZopeExternalEditor/zopeedit.exe','wb')
f.write(data)
f.close()

print "Finished"
 
So we can patching the exe file.

fowlertrainer

 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Hi !
I need to work in new place, with an old windows 98 machine.
I installed zope, and I installed zope external editor, and editor product.
Ok.
But I have a problem in this type of OS.
When I try to edit something, it is makes an error like this:
FATAL ERROR [ERRNO 2] No such file or directory: '~\\ZopeEdit.ini'
I try to place the ZopeEdit.ini in another directories, like C:\, 
C:\WINDOWS, but I has been failed.
I everything do like in XP/2000, so I don't make mistake. ZopeEdit.ini 
has placed in dir of zopeedit.exe, so it must to find by exe, but it 
hasn't happening. Why ?
Please help me !
Thanx:
FT
PS:
I send this mail to zope.org. When somebody is try to help me, please write
an private mail too, because I'm in digest mode.
Thanxxxxxx....


More information about the Zope mailing list