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

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -