MCPcopy 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
25def restart(twice):
26 os.execl(sys.executable, sys.executable, *[sys.argv[0], "-t", twice])
27
28
29class Window(QWidget):

Callers 1

AutoRestart.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected