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') |