Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PyQt5/PyQt
/ restart
Function
restart
Demo/AutoRestart.py:25–26 ·
view source on GitHub ↗
(twice)
Source
from the content-addressed store, hash-verified
23
24
25
def
restart(twice):
26
os.execl(sys.executable, sys.executable, *[sys.argv[0],
"-t"
, twice])
27
28
29
class
Window(QWidget):
Callers
1
AutoRestart.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected