mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Refactored for cleaner code
This commit is contained in:
15
main.py
15
main.py
@@ -1,17 +1,14 @@
|
||||
#!/usr/bin/python
|
||||
# import zipfile as Zip
|
||||
import sys
|
||||
from PIL import Image
|
||||
sys.path.insert(1, 'lib/')
|
||||
from pyShelf import InitFiles, Epub
|
||||
from config import Config
|
||||
from library import Catalogue
|
||||
# Get configuration settings
|
||||
config = Config()
|
||||
# Initialize file system
|
||||
InitFiles(config.file_array)
|
||||
# Open the Catalogue
|
||||
Catalogue = Catalogue()
|
||||
# Filter Your books
|
||||
|
||||
config = Config() # Get configuration settings
|
||||
InitFiles(config.file_array) # Initialize file system
|
||||
Catalogue = Catalogue() # Open the Catalogue
|
||||
|
||||
# This only needs to be run on first run, & when new books are added
|
||||
Epub().import_books()
|
||||
Epub().import_books() # Filter Your books
|
||||
Reference in New Issue
Block a user