Add __main__.py to improve how to launch the bot

This commit is contained in:
Gerald Lonlas 2018-06-03 08:57:13 -07:00
parent c6b93f8fe5
commit 43696eff5c
1 changed files with 15 additions and 0 deletions

15
freqtrade/__main__.py Normal file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env python3
"""
__main__.py for Freqtrade
To launch Freqtrade as a module
> python -m freqtrade (with Python >= 3.6)
"""
import sys
from freqtrade import main
if __name__ == '__main__':
main.set_loggers()
main.main(sys.argv[1:])