Browse Source

Strategická: Realpath souboru

master
David Klement 2 years ago
parent
commit
f98a172f9d
  1. 3
      klient/client.py

3
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)

Loading…
Cancel
Save