from utils.import_all_file import modify_file_dialog_path_and_import_all from utils.click_soft_button import clickFileIMportShow, clickBegingSlice import time from utils.exe_operate import start_exe, click_confirm, close #"C:/test/10192_small_No4/data" def BeginSliceing(folderPath): # 打开3d切片软件 start_exe() time.sleep(1) #点击确认按钮 click_confirm() #先打开导入文件的弹框 clickFileIMportShow() time.sleep(1) #在输入路径导入obj文件 isSuccess = modify_file_dialog_path_and_import_all(folderPath) if not isSuccess: print("导入文件失败") exit() #点击开始切片 time.sleep(5) clickBegingSlice()