From 05bc8422a1c04b260724b0dc909483b7f476f0bd Mon Sep 17 00:00:00 2001 From: deadsmond <01.lewicki@gmail.com> Date: Tue, 3 Dec 2019 13:48:27 +0100 Subject: [PATCH] 'hm' --- TaskB04/run | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/TaskB04/run b/TaskB04/run index 6de69ed..c9537b2 100644 --- a/TaskB04/run +++ b/TaskB04/run @@ -50,8 +50,10 @@ for line in sys.stdin: print(sys.argv, sys.argv[1].replace('.arg', '.exp')) -new_file = sys.argv[1].replace('.arg', '.txt') -shutil.copy(sys.argv[1], new_file) #copy the file to destination dir +shutil.copy( + sys.argv[1].replace('.arg', '.exp'), + sys.argv[1].replace('.arg', '.txt') + ) f = open(new_file, 'r')