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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -