From c90af04d27c1d4b77a97f700beb7676ef3703ef0 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Sat, 31 Oct 2020 03:08:55 -0400 Subject: [PATCH] rename paths --- conf.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/conf.py b/conf.py index d9fed3c..899c3da 100644 --- a/conf.py +++ b/conf.py @@ -16,21 +16,22 @@ import json import django from pathlib import Path -import recommonmark + +import recommonmark # noqa: F401 from recommonmark.transform import AutoStructify os.environ['USE_CHROME'] = 'False' -REPO_DIR = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..')) -PYTHON_DIR = os.path.join(REPO_DIR, 'archivebox') +ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..')) +PACKAGE_DIR = os.path.join(ROOT_DIR, 'archivebox') sys.path.insert(0, os.path.abspath('.')) sys.path.insert(0, os.path.abspath('../')) -sys.path.insert(0, PYTHON_DIR) +sys.path.insert(0, PACKAGE_DIR) os.environ.setdefault("DJANGO_SETTINGS_MODULE", "core.settings") django.setup() -VERSION = json.loads((Path(REPO_DIR) / 'package.json').read_text().strip())['version'] +VERSION = json.loads((Path(ROOT_DIR) / 'package.json').read_text().strip())['version'] # -- Project information -----------------------------------------------------