diff --git a/VERSION b/VERSION index a918a2a..ee6cdce 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.6.0 +0.6.1 diff --git a/news_signals/cli.py b/news_signals/cli.py index 255eae2..8052ae0 100644 --- a/news_signals/cli.py +++ b/news_signals/cli.py @@ -1,6 +1,8 @@ import sys import subprocess import logging +import os +from pathlib import Path from news_signals.log import create_logger @@ -8,7 +10,10 @@ logger = create_logger(__name__, level=logging.INFO) +path_to_file = Path(os.path.dirname(os.path.abspath(__file__))) + + def generate_dataset(): logger.info("Generating dataset via cli command `generate-dataset`") print(f"Args: {sys.argv[1:]}") - sys.exit(subprocess.call([sys.executable, 'bin/generate_dataset.py'] + sys.argv[1:])) + sys.exit(subprocess.call([sys.executable, str(path_to_file / '../bin/generate_dataset.py')] + sys.argv[1:]))