FEATURE: add --working-directory option

morituri will change to this directory before ripping, so
--output-directory is relative to this.
This commit is contained in:
Thomas Vander Stichele
2013-01-13 16:47:48 +01:00
parent b80c89dbd6
commit 090b9656d5
2 changed files with 15 additions and 2 deletions

View File

@@ -69,6 +69,11 @@ class Program(log.Loggable):
'table')
return path
def setWorkingDirectory(self, workingDirectory):
if workingDirectory:
self.info('Changing to working directory %s' % workingDirectory)
os.chdir(workingDirectory)
def loadDevice(self, device):
"""
Load the given device.