diff --git a/build_make.py b/build_make.py index 814d32f..6ffc99f 100644 --- a/build_make.py +++ b/build_make.py @@ -3,11 +3,11 @@ import glob import shutil def filepath_mass_changer(Version ,path ,apapath, extension="txt"): - f = glob.glob(os.path.join(path,"*.txt")) + f = glob.glob(os.path.join(path,"*."+extension)) for filename in f: s = os.path.basename(filename) os.rename(filename, os.path.join(path, Version + '_' + s )) f = glob.glob(os.path.join(path,"*."+extension)) for filename in f: s = os.path.basename(filename) - shutil.copy2(os.path.join(path,s), apapath) \ No newline at end of file + shutil.copy2(os.path.join(path,s), apapath)