This commit is contained in:
2025-11-10 17:05:43 +08:00
parent c2f34d09e9
commit 7f0a73381d
2 changed files with 9 additions and 4 deletions
+7
View File
@@ -22,6 +22,7 @@ def get_config_path():
else:
# 开发环境
base_path = os.path.dirname(os.path.abspath(__file__))
print(f'base_path: {base_path}')
return os.path.join(base_path, 'config.ini')
@@ -56,3 +57,9 @@ def initConfig():
grid_price = [float(item) for item in str_list]
grid_volume = config.getint('config','grid_volume')
account_no = config.get('config','account_no')
# 控制台打印
print(f'miniQMTPath: {miniQMTPath}')
print(f'grid_price: {grid_price}')
print(f'grid_volume: {grid_volume}')
print(f'account_no: {account_no}')