Skip to content

Commit

Permalink
fix(config): fixed config loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Lluis Santos committed Nov 16, 2020
1 parent 21fe3d5 commit d6ec103
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import setuptools
setuptools.setup(
name="tradingkit",
version="1.1.19",
version="1.1.20",
author="QBit Artifacts, SL",
author_email="lluis@logictraders.com",
license="MIT",
Expand Down
3 changes: 2 additions & 1 deletion src/tradingkit/cli/cli.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import importlib.resources as res
import json
import logging
import os
Expand Down Expand Up @@ -65,7 +66,7 @@ def main():
CLI.command_import(exchange_name, symbol, fetcher, year, months)
else:

config = json.loads(System.read_file("config/config.json"))
config = json.loads(res.read_text("tradingkit.config", "config.json"))

strategy_dir = args['<strategy_dir>'] or '.'
System.load_env(strategy_dir, args['--env'])
Expand Down

0 comments on commit d6ec103

Please sign in to comment.