Add docstring to top of main timesearch.py launch file.

master
Ethan Dalool 2020-04-22 23:53:04 -07:00
parent b98f096fd4
commit a56451108d
1 changed files with 8 additions and 1 deletions

View File

@ -1,10 +1,17 @@
'''
This is the main launch file for Timesearch.
When you run `python timesearch.py get_submissions -r subredditname` or any
other command, your arguments will first go to timesearch_modules\__init__.py,
then into timesearch_modules\get_submissions.py as appropriate for your command.
'''
import logging
handler = logging.StreamHandler()
log_format = '{levelname}:timesearch.{module}.{funcName}: {message}'
handler.setFormatter(logging.Formatter(log_format, style='{'))
logging.getLogger().addHandler(handler)
import sys
import timesearch_modules