From 15c992b78adee0e795a05740ebac07b912b712ab Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Fri, 1 Mar 2024 12:27:15 -0800 Subject: [PATCH] shuffle constants to be easy to import from both core and gui --- felt/{gui => }/constants.py | 0 felt/core/api_client.py | 2 +- felt/core/auth.py | 2 +- felt/gui/authorize_dialog.py | 2 +- felt/gui/create_map_dialog.py | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename felt/{gui => }/constants.py (100%) diff --git a/felt/gui/constants.py b/felt/constants.py similarity index 100% rename from felt/gui/constants.py rename to felt/constants.py diff --git a/felt/core/api_client.py b/felt/core/api_client.py index d22160f..2eb88ab 100644 --- a/felt/core/api_client.py +++ b/felt/core/api_client.py @@ -41,7 +41,7 @@ from .meta import PLUGIN_METADATA_PARSER from .s3_upload_parameters import S3UploadParameters from .enums import UsageType -from ..gui.constants import ( +from ..constants import ( FELT_API_URL ) diff --git a/felt/core/auth.py b/felt/core/auth.py index 21f5725..36fe8a7 100644 --- a/felt/core/auth.py +++ b/felt/core/auth.py @@ -31,7 +31,7 @@ ) from .pkce import generate_pkce_pair -from ..gui.constants import ( +from ..constants import ( FELT_API_BASE ) diff --git a/felt/gui/authorize_dialog.py b/felt/gui/authorize_dialog.py index b8286ad..c189c9f 100644 --- a/felt/gui/authorize_dialog.py +++ b/felt/gui/authorize_dialog.py @@ -30,7 +30,7 @@ ) from qgis.gui import QgsGui -from .constants import ( +from ..constants import ( PRIVACY_POLICY_URL, TOS_URL, SIGNUP_URL diff --git a/felt/gui/create_map_dialog.py b/felt/gui/create_map_dialog.py index c463eda..8a0a1d8 100644 --- a/felt/gui/create_map_dialog.py +++ b/felt/gui/create_map_dialog.py @@ -50,7 +50,7 @@ from .authorization_manager import AUTHORIZATION_MANAGER from .colored_progress_bar import ColorBar -from .constants import ( +from ..constants import ( PRIVACY_POLICY_URL, TOS_URL )