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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user