mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-29 17:19:53 +02:00
rename paths
11
conf.py
11
conf.py
@@ -16,21 +16,22 @@ import json
|
|||||||
import django
|
import django
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import recommonmark
|
|
||||||
|
import recommonmark # noqa: F401
|
||||||
from recommonmark.transform import AutoStructify
|
from recommonmark.transform import AutoStructify
|
||||||
|
|
||||||
os.environ['USE_CHROME'] = 'False'
|
os.environ['USE_CHROME'] = 'False'
|
||||||
|
|
||||||
REPO_DIR = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..'))
|
ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..'))
|
||||||
PYTHON_DIR = os.path.join(REPO_DIR, 'archivebox')
|
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, 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")
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "core.settings")
|
||||||
django.setup()
|
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 -----------------------------------------------------
|
# -- Project information -----------------------------------------------------
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user