From bdfece4927b0288296518160194bfaf89d84ebf4 Mon Sep 17 00:00:00 2001 From: Remi Gau Date: Tue, 7 Nov 2023 19:10:17 +0100 Subject: [PATCH] use relative import --- python/app_list_table.py | 2 +- python/cli.py | 4 ++-- python/create_schema.py | 4 ++-- python/generate_landing_page.py | 2 +- python/item.py | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/python/app_list_table.py b/python/app_list_table.py index 948d3267..0cb6abe0 100644 --- a/python/app_list_table.py +++ b/python/app_list_table.py @@ -5,7 +5,7 @@ """ import os -from utils import get_metatable +from .utils import get_metatable from template_manager import TemplateManager diff --git a/python/cli.py b/python/cli.py index 3b037009..3ebc646c 100644 --- a/python/cli.py +++ b/python/cli.py @@ -3,8 +3,8 @@ # see how reproschema uses click to create command line calls `reproschema validate` import os, click -from create_schema import create_schema -from utils import print_download, get_root_dir, get_metatable +from .create_schema import create_schema +from .utils import print_download, get_root_dir, get_metatable default_dir = os.path.join(get_root_dir(), "schemas") diff --git a/python/create_schema.py b/python/create_schema.py index bb0437a9..470bc8fb 100644 --- a/python/create_schema.py +++ b/python/create_schema.py @@ -2,8 +2,8 @@ from rich import print -from item import get_item_info, define_new_item -from utils import ( +from .item import get_item_info, define_new_item +from .utils import ( snake_case, print_info, print_item_info, diff --git a/python/generate_landing_page.py b/python/generate_landing_page.py index 6e79432b..64dde5cb 100644 --- a/python/generate_landing_page.py +++ b/python/generate_landing_page.py @@ -3,7 +3,7 @@ """ import os -from utils import get_metatable +from .utils import get_metatable from template_manager import TemplateManager diff --git a/python/item.py b/python/item.py index f839d1a3..635dd3bc 100644 --- a/python/item.py +++ b/python/item.py @@ -3,7 +3,7 @@ from numpy import linspace, isnan -from utils import convert_to_str, convert_to_int, snake_case +from .utils import convert_to_str, convert_to_int, snake_case from reproschema.models.item import Item, ResponseOption from rich import print