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

Method do_overlay

postscript.py:543–554  ·  view source on GitHub ↗

Put overlay image on all hard copies: overlay

(self, arg)

Source from the content-addressed store, hash-verified

541
542 # ------------------------[ overlay <file> ]--------------------------
543 def do_overlay(self, arg):
544 "Put overlay image on all hard copies: overlay <file>"
545 if not arg:
546 arg = eval(input('File: '))
547 if arg.endswith('ps'):
548 data = file().read(arg) # already ps/eps file
549 else:
550 self.chitchat(
551 "For best results use a file from the overlays/ directory")
552 data = self.convert(arg, 'eps') # try to convert other file types
553 if data:
554 self.overlay(data)
555
556 # define alias
557 complete_overlay = printer.complete_lfiles # files or directories

Callers

nothing calls this directly

Calls 5

overlayMethod · 0.95
fileClass · 0.90
readMethod · 0.80
convertMethod · 0.80
chitchatMethod · 0.45

Tested by

no test coverage detected