mirror of
				https://github.com/janeczku/calibre-web
				synced 2025-10-31 15:23:02 +00:00 
			
		
		
		
	Merge remote-tracking branch 'custom-dbpath'
This commit is contained in:
		| @@ -207,6 +207,7 @@ def backupCalibreDbAndOptionalDownload(drive, f=None): | ||||
|     if f: | ||||
|         databaseFile.GetContentFile(f) | ||||
|  | ||||
|  | ||||
| def copyToDrive(drive, uploadFile, createRoot, replaceFiles, | ||||
|         ignoreFiles=[], | ||||
|         parent=None, prevDir=''): | ||||
|   | ||||
| @@ -13,7 +13,7 @@ from flask_babel import gettext as _ | ||||
| import json | ||||
| #from builtins import str | ||||
|  | ||||
| dbpath = os.path.join(os.path.normpath(os.path.dirname(os.path.realpath(__file__)) + os.sep + ".." + os.sep), "app.db") | ||||
| dbpath = os.path.join(os.path.normpath(os.getenv("CALIBRE_DBPATH", os.path.dirname(os.path.realpath(__file__)) + os.sep + ".." + os.sep)), "app.db") | ||||
| engine = create_engine('sqlite:///{0}'.format(dbpath), echo=False) | ||||
| Base = declarative_base() | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 OzzieIsaacs
					OzzieIsaacs