MCPcopy Create free account
hub / github.com/RUB-NDS/PRET / set_vol

Method set_vol

printer.py:320–331  ·  view source on GitHub ↗
(self, vol="")

Source from the content-addressed store, hash-verified

318
319 # set volume
320 def set_vol(self, vol=""):
321 if not vol:
322 # set default volumes
323 if self.mode == "ps":
324 vol = c.PS_VOL
325 if self.mode == "pjl":
326 vol = c.PJL_VOL
327 if self.vol != vol:
328 # reset path traversal and cwd
329 self.set_traversal()
330 # set actual volume
331 self.vol = vol
332
333 # get volume
334 def get_vol(self):

Callers 2

set_defaultsMethod · 0.95
do_chvolMethod · 0.95

Calls 1

set_traversalMethod · 0.95

Tested by

no test coverage detected