Skip to content

Add abs paths to allow label-maker cli to work outside module dir #4

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

Merged
merged 4 commits into from
Jan 11, 2018

Conversation

wronk
Copy link
Contributor

@wronk wronk commented Jan 11, 2018

closes #2

@wronk wronk requested a review from drewbo January 11, 2018 15:47
Copy link
Contributor

@drewbo drewbo left a comment

Choose a reason for hiding this comment

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

@wronk Can you also add countriest.txt to the MANIFEST.in so it will end up in the distributed package?

def parse_args(args):
"""Create an argument parser with subcommands"""
desc = 'label_maker (v%s)' % __version__
dhf = argparse.ArgumentDefaultsHelpFormatter
parser = argparse.ArgumentParser(description=desc)
config_fpath = op.join(op.dirname(__file__), '..', 'config.json')
Copy link
Contributor

Choose a reason for hiding this comment

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

@wronk can we leave this one as is? The default config should be relative to the users directory and not the module

@drewbo
Copy link
Contributor

drewbo commented Jan 11, 2018

@wronk looks solid; can you add a test just to verify this won't fail again?

@wronk wronk force-pushed the bug/2-pwd branch 4 times, most recently from ec78d73 to b0d8024 Compare January 11, 2018 17:05
@drewbo drewbo merged commit 060b8d7 into master Jan 11, 2018
@drewbo drewbo deleted the bug/2-pwd branch January 11, 2018 18:12
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.

Commands will fail if terminal pwd isn't in /label-maker
2 participants