BussinessLogic.py 667 B

1234567891011121314151617181920
  1. from conf import PathConfig
  2. import os
  3. class business_logic:
  4. def convert_files(self,file):
  5. Path = PathConfig( )
  6. #app = application.Application()
  7. backslash = "\\"
  8. FolderPaths = Path.getPath()
  9. print(FolderPaths[1])
  10. print(file)
  11. app_path = FolderPaths[1]+backslash+file
  12. print(app_path)
  13. os.startfile(app_path)
  14. #autoit.run("E:\sample\TK Praktikum1.trec")
  15. #autoit.win_wait_active("[CLASS:Notepad]", 3)
  16. #autoit.control_send("[CLASS:Notepad]", "Edit1", "hello world{!}")
  17. #autoit.win_close("[CLASS:Notepad]")
  18. #autoit.control_click("[Class:#32770]", "Button2")