From aa21ecf0b8b81f383986fa1f1d562b561fbf4b9a Mon Sep 17 00:00:00 2001 From: minoplhy Date: Sat, 21 Aug 2021 23:43:24 +0700 Subject: [PATCH] Fix Copyfile --- build_make.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build_make.py b/build_make.py index e007df4..79aa6df 100644 --- a/build_make.py +++ b/build_make.py @@ -7,4 +7,7 @@ def filepath_mass_changer(Version ,path ,apapath): for filename in f: s = os.path.basename(filename) os.rename(filename, os.path.join(path, Version + '_' + s )) - shutil.copytree(path, apapath) \ No newline at end of file + f = glob.glob(os.path.join(path,"*.txt")) + for filename in f: + s = os.path.basename(filename) + shutil.copy2(os.path.join(path,s), apapath) \ No newline at end of file