Skip to content
This repository has been archived by the owner on Nov 13, 2022. It is now read-only.

Commit

Permalink
rip.cd.rip: expand user in directory options
Browse files Browse the repository at this point in the history
This way it's possible to use '~/Music' in the configuration.
  • Loading branch information
benoit-pierre committed Mar 1, 2015
1 parent 2d51c78 commit 18742be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions morituri/rip/cd.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,11 @@ def handleOptions(self, options):
options.offset)
if self.options.output_directory is None:
self.options.output_directory = os.getcwd()
else:
self.options.output_directory = os.path.expanduser(self.options.output_directory)

if self.options.working_directory is not None:
self.options.working_directory = os.path.expanduser(self.options.working_directory)

if self.options.logger:
try:
Expand Down

1 comment on commit 18742be

@thomasvs
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Please # to comment.