Verified Commit 7a1c05a0 authored by Markus Shepherd's avatar Markus Shepherd 🙈
Browse files

small corrections to BASE_DIR; v2.11.2

parent dc027a66
......@@ -2,5 +2,5 @@
"""Version."""
VERSION = (2, 11, 1)
VERSION = (2, 11, 2)
__version__ = ".".join(map(str, VERSION))
......@@ -12,15 +12,13 @@ from pathlib import Path
from time import sleep
from pytility import parse_bool, parse_float
from scrapy.utils.project import get_project_settings
from yaml import safe_load
from .merge import merge_files
from .utils import now
LOGGER = logging.getLogger(__name__)
SETTINGS = get_project_settings()
BASE_DIR = Path(SETTINGS.get("BASE_DIR") or ".").resolve()
BASE_DIR = Path(__file__).resolve().parent.parent
FEEDS_DIR = BASE_DIR / "feeds"
DATA_DIR = (BASE_DIR / ".." / "board-game-data").resolve()
......
......@@ -9,7 +9,6 @@ import os
import sys
from itertools import count
from pathlib import Path
from time import sleep
from pytility import normalize_space
......@@ -23,7 +22,6 @@ except ImportError:
from .utils import now, pubsub_client
LOGGER = logging.getLogger(__name__)
BASE_DIR = Path(__file__).resolve().parent.parent
def _process_messages(messages, output, header=False, encoding="utf-8"):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment