release
This commit is contained in:
@@ -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}')
|
||||
|
||||
Reference in New Issue
Block a user