From 2430c79f9adbeedd3f1caa177a9490cb56771ea3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Kn=C3=BCttel?= Date: Thu, 25 Jan 2018 13:13:27 +0100 Subject: [PATCH] fixed setup.py --- licor/templates.py | 4 ++-- setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/licor/templates.py b/licor/templates.py index 6d4622f..9e32193 100644 --- a/licor/templates.py +++ b/licor/templates.py @@ -100,7 +100,7 @@ def get_template_meta(name, modifiers = []): get_template_meta("AGPL", modifiers = ["single-file"]) """ - templates_avail = json.loads(get_resource_string("licenses_avail.json")) + templates_avail = get_templates_available() if( not name in templates_avail): raise TemplateException("Unknown license: {}".format(name)) @@ -117,7 +117,7 @@ def get_template_meta(name, modifiers = []): else: meta_name = ".".join((name, "meta")) try: - meta = json.loads(get_resource_string(meta_name, True)) + meta = json.loads(get_resource_string(meta_name, False)) except: continue diff --git a/setup.py b/setup.py index fd31351..a8cfe71 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ setup( name = "licor", version = "0.0.1", packages = find_packages(), - package_data = {"licor": ["templates/*"]}, + package_data = {"licor": ["templates/*", "templates/*/*"]}, author = "Daniel Knüttel", author_email = "daniel.knuettel@daknuett.eu", install_requires = ["docopt"],