From f98a172f9d23535f96356ef665ad276fb48d8f44 Mon Sep 17 00:00:00 2001 From: kulisak12 Date: Tue, 20 Sep 2022 17:17:20 +0200 Subject: [PATCH] =?UTF-8?q?Strategick=C3=A1:=20Realpath=20souboru?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- klient/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/klient/client.py b/klient/client.py index 2394792..5122446 100755 --- a/klient/client.py +++ b/klient/client.py @@ -2,6 +2,7 @@ import argparse import json import logging +import os import requests import shutil import sys @@ -63,7 +64,7 @@ def get_command(args) -> List[str]: logger.error("Program not specified.") sys.exit(1) - program = args.program + program = os.path.realpath(args.program) if args.copy: program = tempfile.mktemp() shutil.copyfile(args.program, program)