mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04:00
fix import order
This commit is contained in:
parent
397ae1a99b
commit
d9fef4cd84
2 changed files with 8 additions and 9 deletions
|
@ -25,14 +25,6 @@ ASCII_LOGO = """
|
||||||
╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═══╝ ╚══════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝
|
╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═══╝ ╚══════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# detect ArchiveBox user's UID/GID based on data dir ownership
|
|
||||||
from .config.permissions import drop_privileges # noqa
|
|
||||||
drop_privileges()
|
|
||||||
|
|
||||||
from .misc.checks import check_not_root, check_io_encoding # noqa
|
|
||||||
check_not_root()
|
|
||||||
check_io_encoding()
|
|
||||||
|
|
||||||
# make sure PACKAGE_DIR is in sys.path so we can import all subfolders
|
# make sure PACKAGE_DIR is in sys.path so we can import all subfolders
|
||||||
# without necessarily waiting for django to load them thorugh INSTALLED_APPS
|
# without necessarily waiting for django to load them thorugh INSTALLED_APPS
|
||||||
PACKAGE_DIR = Path(__file__).resolve().parent
|
PACKAGE_DIR = Path(__file__).resolve().parent
|
||||||
|
@ -40,6 +32,13 @@ if str(PACKAGE_DIR) not in sys.path:
|
||||||
sys.path.append(str(PACKAGE_DIR))
|
sys.path.append(str(PACKAGE_DIR))
|
||||||
os.environ['DJANGO_SETTINGS_MODULE'] = 'core.settings'
|
os.environ['DJANGO_SETTINGS_MODULE'] = 'core.settings'
|
||||||
|
|
||||||
|
# detect ArchiveBox user's UID/GID based on data dir ownership
|
||||||
|
from .config.permissions import drop_privileges # noqa
|
||||||
|
drop_privileges()
|
||||||
|
|
||||||
|
from .misc.checks import check_not_root, check_io_encoding # noqa
|
||||||
|
check_not_root()
|
||||||
|
check_io_encoding()
|
||||||
|
|
||||||
# print('INSTALLING MONKEY PATCHES')
|
# print('INSTALLING MONKEY PATCHES')
|
||||||
from .monkey_patches import * # noqa
|
from .monkey_patches import * # noqa
|
||||||
|
|
2
uv.lock
generated
2
uv.lock
generated
|
@ -41,7 +41,7 @@ wheels = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "archivebox"
|
name = "archivebox"
|
||||||
version = "0.8.5rc4"
|
version = "0.8.5rc5"
|
||||||
source = { editable = "." }
|
source = { editable = "." }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "atomicwrites" },
|
{ name = "atomicwrites" },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue