1 #read the comment to this file in lib/service/iservice.h !!
5 os.rename("enigma.py", "enigma.py.org")
7 source=open("enigma.py.org", "r")
8 dest=open("enigma.py", "w")
11 for str in source.readlines():
13 str = str.replace('_ENUMS)', ')')
15 pos = str.find('_ENUMS')
18 while spacepos > 0 and str[spacepos] != ' ':
20 tmpstr = str[spacepos:pos]
21 if tmpstr.find('_enigma.') == -1:
22 str = str[:pos]+str[pos+6:]
25 print "!!! Patch enigma.py line %d\n%s\n%s" %(line, oldstr[:len(oldstr)-1], str)
32 os.remove("enigma.py.org")