[TSM.ID].[11031972] PXE : Platform X Ecosystem I [118 Module -LIVE-]
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import sys
|
||||
|
||||
filepath = r'c:\jumpa.id\c\app\page.tsx'
|
||||
|
||||
with open(filepath, 'r', encoding='utf-8') as f:
|
||||
lines = f.readlines()
|
||||
|
||||
out_lines = []
|
||||
for line in lines:
|
||||
out_lines.append(line)
|
||||
if '// FASE 87: XTM ABSOLUTE' in line:
|
||||
# Include the next line (the return statement)
|
||||
idx = lines.index(line)
|
||||
out_lines.append(lines[idx+1])
|
||||
out_lines.append("}\n")
|
||||
break
|
||||
|
||||
with open(filepath, 'w', encoding='utf-8') as f:
|
||||
f.writelines(out_lines)
|
||||
|
||||
print("Truncated page.tsx successfully.")
|
||||
Reference in New Issue
Block a user