Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow dest to refer to a filename relative to working directory #64

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

slycordinator
Copy link

  1. Allows user to set dest as merely a filename to be placed in the current directory

If self.dest is set, but lacks a directory portion, then sets self.dest to itself with the working directory ['.'+os.sep] appended to the front of it.

  1. Made so only checks for / creates the output directory once.

Note:
Without the change, if the the dest was a simply specified as a filename, the calls to os.makedirs(os.path.dirname(self.dest)) failed, because os.path.dirname(self.dest) evaluated to ''

1) Allows user to set dest as merely a filename to be placed in the current directory

If self.dest is set, but lacks a directory portion, then sets self.dest to itself with the working directory ['.'+os.sep] appended to the front of it.

2) Made so only checks for / creates the output directory once.
When destination has no directory component, add logging info for placing the file into the working directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant