Auto-update: Mon Sep 23 09:54:46 PDT 2024
This commit is contained in:
parent
3fc0f9d30c
commit
7abaa9d75c
1 changed files with 10 additions and 8 deletions
|
@ -7,17 +7,19 @@ import time
|
||||||
from tqdm import tqdm
|
from tqdm import tqdm
|
||||||
|
|
||||||
def load_config():
|
def load_config():
|
||||||
script_dir = os.path.dirname(os.path.abspath(__file__))
|
script_dir = os.path.dirname(os.path.abspath(__file__))
|
||||||
sys_config_path = os.path.join(script_dir, '..', 'config', 'sys.yaml')
|
project_root = os.path.abspath(os.path.join(script_dir, '..', '..'))
|
||||||
gis_config_path = os.path.join(script_dir, '..', 'config', 'gis.yaml')
|
sys_config_path = os.path.join(project_root, 'config', 'sys.yaml')
|
||||||
|
gis_config_path = os.path.join(project_root, 'config', 'gis.yaml')
|
||||||
|
|
||||||
with open(sys_config_path, 'r') as f:
|
with open(sys_config_path, 'r') as f:
|
||||||
sys_config = yaml.safe_load(f)
|
sys_config = yaml.safe_load(f)
|
||||||
|
|
||||||
with open(gis_config_path, 'r') as f:
|
with open(gis_config_path, 'r') as f:
|
||||||
gis_config = yaml.safe_load(f)
|
gis_config = yaml.safe_load(f)
|
||||||
|
|
||||||
|
return sys_config, gis_config
|
||||||
|
|
||||||
return sys_config, gis_config
|
|
||||||
|
|
||||||
def get_table_size(server, table_name):
|
def get_table_size(server, table_name):
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
|
|
Loading…
Add table
Reference in a new issue