17 lines
581 B
Python
17 lines
581 B
Python
import sys
|
|
from datetime import datetime
|
|
|
|
# Vypíšeme všechny argumenty, které Medicus předal
|
|
print("=== Medicus → Python argument test ===")
|
|
print(f"🕓 {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}")
|
|
print()
|
|
|
|
for i, arg in enumerate(sys.argv):
|
|
print(f"Arg {i}: {arg!r}")
|
|
|
|
# A uložíme i do souboru pro jistotu
|
|
with open(r"u:\Dropbox\!!!Days\Downloads Z230\received_from_medicus.txt", "a", encoding="utf-8") as f:
|
|
f.write(f"\n--- {datetime.now().strftime('%Y-%m-%d %H:%M:%S')} ---\n")
|
|
for i, arg in enumerate(sys.argv):
|
|
f.write(f"Arg {i}: {arg!r}\n")
|