mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Renamed main.py
This commit is contained in:
14
app/pyShelf_ScanLibrary.py
Executable file
14
app/pyShelf_ScanLibrary.py
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user