From 198a4ad472a88982f095668d3bab931ebc013037 Mon Sep 17 00:00:00 2001 From: Kale Date: Fri, 20 Aug 2021 23:41:05 -0700 Subject: [PATCH] Add 'build_make.py' --- build_make.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 build_make.py diff --git a/build_make.py b/build_make.py new file mode 100644 index 0000000..e007df4 --- /dev/null +++ b/build_make.py @@ -0,0 +1,10 @@ +import os +import glob +import shutil + +def filepath_mass_changer(Version ,path ,apapath): + f = glob.glob(os.path.join(path,"*.txt")) + 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