Merge pull request #834 from gcarq/feature/__main__

Add __main__.py to improve how to launch the bot
This commit is contained in:
Samuel Husso 2018-06-03 19:28:23 +03:00 committed by GitHub
commit bdb25bbcbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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:])