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

Support '{var}' in filenames #10

Merged
merged 2 commits into from
Oct 18, 2020
Merged

Conversation

markrofail
Copy link
Contributor

@markrofail markrofail commented Oct 18, 2020

PR Summary
closes #9

To add support for {var} in filepath I had to move some things around
1- add matching var pattern to variables from template_path
2- move local_path definition after input()

I also took the liberty of replacing os.path methods with their equivalent pathlib methods to avoid moving from Path and str formats so much.

if you view the diff without whitespace changes it would be simpler
image

@markrofail markrofail changed the title [feat] add support to {var} in filepaths Support '{var}' in filenames Oct 18, 2020
regen.py Outdated Show resolved Hide resolved
regen.py Outdated Show resolved Hide resolved
regen.py Outdated Show resolved Hide resolved
regen.py Outdated Show resolved Hide resolved
regen.py Outdated Show resolved Hide resolved
@thatch
Copy link
Member

thatch commented Oct 18, 2020

Looking good, and thanks for the PR. Minor comments inline.

[fix] remove redundant code
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.

Support filenames with '{var}' in them
2 participants