python - Time.sleep() and win32api.Sleep() cannot work when convert .py file to .exe file -


i'm writing script using selenium webdriver python. when run program in ide script run good, when convert .py file .exe , run exe file in window delay function not working. maybe passed delay function. used both time.sleep() , win32api.sleep() of them not display when running exe file. here example:

import time import win32api  time.sleep(10) win32api.sleep(1000) 

could know this? thank you! i'm using python 3.6, spyder ide. used cx_freeze convert py file exe file.


Comments

Popular posts from this blog

string - Using python and postgres, variables within execute function? -

android - How to get the Uri path from a ImageView? -