app.py 548 B

123456789101112131415161718192021
  1. from automate import Automate
  2. from BussinessLogic import business_logic
  3. from conf import Config
  4. Files=[]
  5. Auto = Automate()
  6. #Initializes from the configuration file
  7. Auto.Init()
  8. Path = Config( )
  9. #Get the folder paths to copy from src to dest
  10. #src_folder = Path.get_Original_Path()
  11. #dest_folder = Path.get_Moved_Path()
  12. Auto.copyFiles(Path.Original_Path,Path.Moved_Path)
  13. #Get the files from the dest folder to start the conversion process
  14. Files=Auto.GetFiles(Path.Moved_Path)
  15. for file in Files:
  16. bi = business_logic()
  17. bi.convert_files(file)