ptoos-xray/src/main.py

22 lines
439 B
Python
Raw Normal View History

2022-10-23 03:37:01 +02:00
import sys
import logging
import src.pokemon
import src.epub
2022-10-20 01:59:46 +02:00
from rich.logging import RichHandler
2022-10-20 04:08:35 +02:00
2022-10-20 01:59:46 +02:00
def main():
logging.basicConfig(
level=logging.INFO,
format="%(message)s",
datefmt="[%X]",
handlers=[RichHandler()],
)
2022-10-23 03:37:01 +02:00
try:
ptoos_epub = sys.argv[1]
except IndexError:
2022-10-23 16:56:23 +02:00
ptoos_epub = "ptoos.epub"
pokemon = src.pokemon.get_pokemon()
2022-10-23 03:37:01 +02:00
src.epub.patch(ptoos_epub, pokemon)