Upload rebrand_v23.py
Browse files- rebrand_v23.py +21 -0
rebrand_v23.py
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# rebrand_v23.py - Rebrand ATYPIK -> EVIDENCE v23.0
|
| 2 |
+
path = r"C:\Users\lenovo\atypik_check\main.py"
|
| 3 |
+
|
| 4 |
+
with open(path, "r", encoding="utf-8") as f:
|
| 5 |
+
content = f.read()
|
| 6 |
+
|
| 7 |
+
# Fix 1: VERSION
|
| 8 |
+
content = content.replace('VERSION = "22.1d"', 'VERSION = "23.0"')
|
| 9 |
+
|
| 10 |
+
# Fix 2: Message root
|
| 11 |
+
old_msg = '{"message": "ATYPIK v21.3", "docs": "/docs"}'
|
| 12 |
+
new_msg = '{"message": "EVIDENCE v23.0 - Self-Reflective AI", "docs": "/docs"}'
|
| 13 |
+
content = content.replace(old_msg, new_msg)
|
| 14 |
+
|
| 15 |
+
with open(path, "w", encoding="utf-8") as f:
|
| 16 |
+
f.write(content)
|
| 17 |
+
|
| 18 |
+
print("OK - Rebrand applique")
|
| 19 |
+
print("Verifiez avec:")
|
| 20 |
+
print(' Select-String -Path main.py -Pattern "VERSION = "')
|
| 21 |
+
print(' Select-String -Path main.py -Pattern "EVIDENCE"')
|