diff --git a/gsuid_core/buildin_plugins/core_command/core_restart/restart.py b/gsuid_core/buildin_plugins/core_command/core_restart/restart.py index 88bd43e..b6aa8de 100644 --- a/gsuid_core/buildin_plugins/core_command/core_restart/restart.py +++ b/gsuid_core/buildin_plugins/core_command/core_restart/restart.py @@ -31,7 +31,7 @@ def get_restart_command(): tool = check_start_tool() if tool != 'python': return f'{tool} run python' - return 'python -m' + return 'python' async def get_restart_sh() -> str: diff --git a/gsuid_core/utils/database/base_models.py b/gsuid_core/utils/database/base_models.py index 4dabfa4..807a36b 100644 --- a/gsuid_core/utils/database/base_models.py +++ b/gsuid_core/utils/database/base_models.py @@ -50,9 +50,9 @@ db_config = { 'echo': db_echo, } +DB_PATH = get_res_path() / 'GsData.db' if _db_type == 'sqlite': base_url = 'sqlite+aiosqlite:///' - DB_PATH = get_res_path() / 'GsData.db' db_url = str(DB_PATH) del db_config['pool_size'] elif _db_type == 'mysql':