diff --git a/Přenos_argumentů_MEDICUS/10_Receiver.py b/Přenos_argumentů_MEDICUS/10_Receiver.py new file mode 100644 index 0000000..4af0523 --- /dev/null +++ b/Přenos_argumentů_MEDICUS/10_Receiver.py @@ -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") diff --git a/Přenos_argumentů_MEDICUS/run_receiver.bat b/Přenos_argumentů_MEDICUS/run_receiver.bat new file mode 100644 index 0000000..3ea61fb --- /dev/null +++ b/Přenos_argumentů_MEDICUS/run_receiver.bat @@ -0,0 +1,2 @@ +@echo off +"C:\Python\python.exe" "U:\medicus\Přenos_argumentů_MEDICUS\10_Receiver.py" %*