fix DATABASE_NAME posixpath
This commit is contained in:
parent
50ff969209
commit
02bdb3bdeb
2 changed files with 2 additions and 1 deletions
|
@ -42,6 +42,7 @@ def main(args: Optional[List[str]]=None, stdin: Optional[IO]=None, pwd: Optional
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--depth', # '-d',
|
'--depth', # '-d',
|
||||||
type=int,
|
type=int,
|
||||||
|
choices=[0, 1],
|
||||||
default=0,
|
default=0,
|
||||||
help='Depth to archive to [0] or 1, see "add" command help for more info.',
|
help='Depth to archive to [0] or 1, see "add" command help for more info.',
|
||||||
)
|
)
|
||||||
|
|
|
@ -101,7 +101,7 @@ TEMPLATES = [
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
DATABASE_FILE = Path(OUTPUT_DIR) / SQL_INDEX_FILENAME
|
DATABASE_FILE = Path(OUTPUT_DIR) / SQL_INDEX_FILENAME
|
||||||
DATABASE_NAME = os.environ.get("ARCHIVEBOX_DATABASE_NAME", DATABASE_FILE)
|
DATABASE_NAME = os.environ.get("ARCHIVEBOX_DATABASE_NAME", str(DATABASE_FILE))
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {
|
'default': {
|
||||||
|
|
Loading…
Add table
Reference in a new issue