From e889689bccab3bcb42bb6243c991e4599a13de13 Mon Sep 17 00:00:00 2001 From: LDericher <40151420+ldericher@users.noreply.github.com> Date: Mon, 9 Aug 2021 06:33:33 +0200 Subject: [PATCH] PKG structure --- fftcg/__init__.py | 3 +++ fftcg/book.py | 4 ++-- fftcg/cards.py | 2 +- fftcg/opus.py | 2 +- main.py | 3 +-- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/fftcg/__init__.py b/fftcg/__init__.py index e69de29..9c9ce3d 100644 --- a/fftcg/__init__.py +++ b/fftcg/__init__.py @@ -0,0 +1,3 @@ +from book import Book +from opus import Opus + diff --git a/fftcg/book.py b/fftcg/book.py index 163e4d6..394d569 100644 --- a/fftcg/book.py +++ b/fftcg/book.py @@ -2,8 +2,8 @@ import logging from PIL import Image -from .cards import Cards -from .imageloader import ImageLoader +from cards import Cards +from imageloader import ImageLoader def chunks(whole: list[any], chunk_size) -> list: diff --git a/fftcg/cards.py b/fftcg/cards.py index 7a391a6..b4dcb8a 100644 --- a/fftcg/cards.py +++ b/fftcg/cards.py @@ -1,6 +1,6 @@ import requests -from .card import Card +from card import Card class Cards(list[Card]): diff --git a/fftcg/opus.py b/fftcg/opus.py index 0e79314..24a61a1 100644 --- a/fftcg/opus.py +++ b/fftcg/opus.py @@ -2,7 +2,7 @@ import logging import roman -from .cards import Cards +from cards import Cards class Opus(Cards): diff --git a/main.py b/main.py index b700af2..6d0c743 100755 --- a/main.py +++ b/main.py @@ -3,8 +3,7 @@ import argparse import logging import os -from fftcg.book import Book -from fftcg.opus import Opus +from fftcg import Book, Opus # constants GRID = 7, 10 # default in TTsim: 7 rows, 10 columns