* morituri/common/program.py:

* morituri/rip/cd.py:
	  Add load and eject device.  Do so before and after ripping.
This commit is contained in:
Thomas Vander Stichele
2011-01-01 11:24:26 +00:00
parent e0434f732c
commit 6581261a76
3 changed files with 23 additions and 1 deletions

View File

@@ -173,6 +173,18 @@ class Program(log.Loggable):
'result')
return path
def loadDevice(self, device):
"""
Load the given device.
"""
os.system('eject -t %s' % device)
def ejectDevice(self, device):
"""
Eject the given device.
"""
os.system('eject %s' % device)
def unmountDevice(self, device):
"""
Unmount the given device if it is mounted, as happens with automounted