working archivebox update CLI cmd

This commit is contained in:
Nick Sweeting 2024-11-19 02:31:59 -08:00
parent a0edf218e8
commit c9a05c9d94
No known key found for this signature in database
7 changed files with 61 additions and 114 deletions

View file

@ -1,7 +1,6 @@
#!/usr/bin/env python3
__package__ = 'archivebox.cli'
__command__ = 'archivebox install'
import os
import sys
@ -128,7 +127,9 @@ def install(binproviders: Optional[List[str]]=None, binaries: Optional[List[str]
# if we are only installing a single binary, raise the exception so the user can see what went wrong
raise
from archivebox.config.django import setup_django
setup_django()
from django.contrib.auth import get_user_model
User = get_user_model()