Feat: move recopytex to its own folder

This commit is contained in:
Bertrand Benjamin 2019-08-04 19:27:35 +02:00
parent d4a08f0142
commit 5481b14b7a
2 changed files with 7 additions and 2 deletions

0
recopytex/__init__.py Normal file
View File

View File

@ -7,7 +7,9 @@ import yaml
import sys
import papermill as pm
with open("recoconfig.yml", "r") as config:
CONFIGPATH = "recoconfig.yml"
with open(CONFIGPATH, "r") as config:
config = yaml.load(config, Loader=yaml.FullLoader)
@ -18,7 +20,9 @@ def cli():
@cli.command()
def print_config():
click.echo(config.key())
click.echo(f"Config file is {CONFIGPATH}")
click.echo("It contains")
click.echo(config)
@cli.command()
@ -71,3 +75,4 @@ def report(csv_file):
if __name__ == "__main__":
cli()