MCPcopy
hub / github.com/RUB-NDS/PRET / do_restart

Method do_restart

postscript.py:447–451  ·  view source on GitHub ↗

Restart PostScript interpreter.

(self, arg)

Source from the content-addressed store, hash-verified

445
446 # ------------------------[ restart ]---------------------------------
447 def do_restart(self, arg):
448 "Restart PostScript interpreter."
449 output().chitchat("Restarting PostScript interpreter.")
450 # reset VM, might delete downloaded files and/or restart printer
451 self.globalcmd('systemdict /quit get exec')
452
453 # ------------------------[ reset ]-----------------------------------
454 def do_reset(self, arg):

Callers

nothing calls this directly

Calls 3

globalcmdMethod · 0.95
outputClass · 0.90
chitchatMethod · 0.45

Tested by

no test coverage detected