From 17d614c66a4ab39484b13582061e846d637d7b4f Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 25 May 2019 15:07:52 +0200 Subject: [PATCH] Remove binary script - allow None arguemnts --- bin/freqtrade | 7 ------- freqtrade/__main__.py | 4 +--- freqtrade/main.py | 4 ++-- 3 files changed, 3 insertions(+), 12 deletions(-) delete mode 100755 bin/freqtrade diff --git a/bin/freqtrade b/bin/freqtrade deleted file mode 100755 index e7ae7a4ca..000000000 --- a/bin/freqtrade +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env python3 - -import sys - -from freqtrade.main import main, set_loggers -set_loggers() -main(sys.argv[1:]) diff --git a/freqtrade/__main__.py b/freqtrade/__main__.py index 628fc930f..97ed9ae67 100644 --- a/freqtrade/__main__.py +++ b/freqtrade/__main__.py @@ -6,9 +6,7 @@ To launch Freqtrade as a module > python -m freqtrade (with Python >= 3.6) """ -import sys - from freqtrade import main if __name__ == '__main__': - main.main(sys.argv[1:]) + main.main() diff --git a/freqtrade/main.py b/freqtrade/main.py index d0e783808..9fc8c9d0c 100755 --- a/freqtrade/main.py +++ b/freqtrade/main.py @@ -23,7 +23,7 @@ from freqtrade.worker import Worker logger = logging.getLogger('freqtrade') -def main(sysargv: List[str]) -> None: +def main(sysargv: List[str] = None) -> None: """ This function will initiate the bot and start the trading loop. :return: None @@ -81,4 +81,4 @@ def main(sysargv: List[str]) -> None: if __name__ == '__main__': - main(sys.argv[1:]) + main()