mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
15 lines
410 B
Python
Executable File
15 lines
410 B
Python
Executable File
#!/usr/bin/python
|
|
import os
|
|
import sys
|
|
|
|
from lib.config import Config
|
|
from lib.library import Catalogue
|
|
from lib.pyShelf import InitFiles
|
|
|
|
ROOT_DIR = os.path.abspath('../')
|
|
sys.path.append(ROOT_DIR)
|
|
config = Config(ROOT_DIR) # Get configuration settings
|
|
InitFiles(config.file_array) # Initialize file system
|
|
Catalogue = Catalogue(ROOT_DIR) # Open the Catalogue
|
|
Catalogue.import_books() # Filter Your books
|