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
|
#!/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
|
||||||
Reference in New Issue
Block a user