728x90
반응형
from glob import glob
import os, json
python_file_lst = sorted(glob("./**/*.py", recursive = True))
print(python_file_lst)
for python_file in python_file_lst:
rindex = python_file.rindex('/')
python_file_tf = python_file[:rindex+1]+'tf_'+python_file.split('/')[-1]
print(python_file_tf)
!tf_upgrade_v2 --infile {python_file} --outfile {python_file_tf}
728x90
반응형