From 14e1fe3e0fe7e88c51615c81a03c5338a6d0cfda Mon Sep 17 00:00:00 2001 From: James Melville Date: Thu, 4 May 2023 16:29:08 +0100 Subject: [PATCH] move path to a function --- cloudformation_docs/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cloudformation_docs/cli.py b/cloudformation_docs/cli.py index a9185e4..fd2e09c 100644 --- a/cloudformation_docs/cli.py +++ b/cloudformation_docs/cli.py @@ -6,7 +6,8 @@ from . import core -baseTemplatePath = os.path.join(os.path.dirname(f.name), 'README.jinja') +def baseTemplatePath(f): + return os.path.join(os.path.dirname(f.name), 'README.jinja') @click.command(context_settings={"ignore_unknown_options": True}) @click.option("--create-readme", is_flag=True, show_default=True, default=False, help="Write a README.md alongside the template")