scripts/patch_modpython.py

branch
eric7
changeset 8314
e3642a6a1e71
parent 7960
e8fc383322f7
equal deleted inserted replaced
8313:dac33c7fce07 8314:e3642a6a1e71
93 93
94 sn = "apache.py" 94 sn = "apache.py"
95 with open(sn, "w", encoding="utf-8") as s: 95 with open(sn, "w", encoding="utf-8") as s:
96 for line in lines: 96 for line in lines:
97 if not pdbFound and line.startswith("import pdb"): 97 if not pdbFound and line.startswith("import pdb"):
98 s.write("import eric6.DebugClients.Python.eric6dbgstub as" 98 s.write("import eric7.DebugClients.Python.eric7dbgstub as"
99 " pdb\n") 99 " pdb\n")
100 pdbFound = True 100 pdbFound = True
101 else: 101 else:
102 s.write(line) 102 s.write(line)
103 if line.startswith("import eric6"): 103 if line.startswith("import eric7"):
104 ericFound = True 104 ericFound = True
105 105
106 if not ericFound: 106 if not ericFound:
107 s.write("\n") 107 s.write("\n")
108 s.write('def initDebugger(name):\n') 108 s.write('def initDebugger(name):\n')

eric ide

mercurial