Remove binary script - allow None arguemnts

This commit is contained in:
Matthias 2019-05-25 15:07:52 +02:00
parent 7406edfd8f
commit 17d614c66a
3 changed files with 3 additions and 12 deletions

View File

@ -1,7 +0,0 @@
#!/usr/bin/env python3
import sys
from freqtrade.main import main, set_loggers
set_loggers()
main(sys.argv[1:])

View File

@ -6,9 +6,7 @@ To launch Freqtrade as a module
> python -m freqtrade (with Python >= 3.6) > python -m freqtrade (with Python >= 3.6)
""" """
import sys
from freqtrade import main from freqtrade import main
if __name__ == '__main__': if __name__ == '__main__':
main.main(sys.argv[1:]) main.main()

View File

@ -23,7 +23,7 @@ from freqtrade.worker import Worker
logger = logging.getLogger('freqtrade') 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. This function will initiate the bot and start the trading loop.
:return: None :return: None
@ -81,4 +81,4 @@ def main(sysargv: List[str]) -> None:
if __name__ == '__main__': if __name__ == '__main__':
main(sys.argv[1:]) main()