mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
ui gets v# from config
This commit is contained in:
23
src/backend/pyShelf_MakeCollections.py
Executable file
23
src/backend/pyShelf_MakeCollections.py
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/python
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
|
||||
from .lib.config import Config
|
||||
from .lib.library import Catalogue
|
||||
from .lib.pyShelf import InitFiles
|
||||
from .lib.storage import Storage
|
||||
|
||||
sys.path.append(os.path.abspath("."))
|
||||
|
||||
|
||||
def MakeCollections(root):
|
||||
_t1 = time.time()
|
||||
config = Config(root) # Get configuration settings
|
||||
# InitFiles(config.file_array) # Initialize file system
|
||||
_storage = Storage(config)
|
||||
_storage.make_collections()
|
||||
_t2 = time.time()
|
||||
scan_time = round(_t2 - _t1)
|
||||
print("Collections Made.")
|
||||
print("Time %s seconds" % scan_time)
|
||||
Reference in New Issue
Block a user