Skip to content

Instantly share code, notes, and snippets.

@borntyping
Created October 26, 2017 15:24
Show Gist options
  • Save borntyping/82f3032408e53649c415968f56af750a to your computer and use it in GitHub Desktop.
Save borntyping/82f3032408e53649c415968f56af750a to your computer and use it in GitHub Desktop.
def main(ctx: click.Context, dev: bool, next: bool):
config_file = 'odyssey.json'
log_file = 'odyssey.log'
if next:
config_file = 'odyssey-next.json'
log_file = 'odyssey-next.log'
if not dev:
config_file = os.path.join('/etc/gb/marrs/', config_file)
log_file = os.path.join('/var/log/gb/marrs/', log_file)
ctx.obj = odyssey.app.create_cli_app(config_file, log_file)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment