Refactored for cleaner code

This commit is contained in:
Mike
2019-10-06 16:42:05 -04:00
parent 3f803083a4
commit 7dd0fe00e0

15
main.py
View File

@@ -1,17 +1,14 @@
#!/usr/bin/python #!/usr/bin/python
# import zipfile as Zip
import sys import sys
from PIL import Image from PIL import Image
sys.path.insert(1, 'lib/') sys.path.insert(1, 'lib/')
from pyShelf import InitFiles, Epub from pyShelf import InitFiles, Epub
from config import Config from config import Config
from library import Catalogue from library import Catalogue
# Get configuration settings
config = Config() config = Config() # Get configuration settings
# Initialize file system InitFiles(config.file_array) # Initialize file system
InitFiles(config.file_array) Catalogue = Catalogue() # Open the Catalogue
# Open the Catalogue
Catalogue = Catalogue()
# Filter Your books
# This only needs to be run on first run, & when new books are added # This only needs to be run on first run, & when new books are added
Epub().import_books() Epub().import_books() # Filter Your books