• Ivan Smirnov's avatar
    Read dbpath from $CALIBRE_DBPATH if present · 2c173f98
    Ivan Smirnov authored
    This is an exploration in potentially enabling multiple libraries to run using the same engine. 
    
    Since app config is all in the db, we should get no port conflicts and be able to run multiple instances of this app with no issues.
    
    Using os.getenv instead of os.environ.get allows us to provide CALIBRE_DBPATH inline with the invocation of the file (`CALIBRE_DBPATH=/foo/bar/` python cps.py)
    2c173f98
Name
Last commit
Last update
cps Loading commit data...
vendor Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
LICENSE Loading commit data...
babel.cfg Loading commit data...
cps.py Loading commit data...
gdrive_template.yaml Loading commit data...
getVendor.sh Loading commit data...
messages.pot Loading commit data...
optional-requirements.txt Loading commit data...
readme.md Loading commit data...
requirements.txt Loading commit data...