z230
This commit is contained in:
16
Přenos_argumentů_MEDICUS/10_Receiver.py
Normal file
16
Přenos_argumentů_MEDICUS/10_Receiver.py
Normal file
@@ -0,0 +1,16 @@
|
||||
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")
|
||||
Reference in New Issue
Block a user