Merge pull request #834 from gcarq/feature/__main__
Add __main__.py to improve how to launch the bot
This commit is contained in:
commit
bdb25bbcbc
15
freqtrade/__main__.py
Normal file
15
freqtrade/__main__.py
Normal 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:])
|
Loading…
Reference in New Issue
Block a user