diff --git a/corrlib/initialization.py b/corrlib/initialization.py index bdf9cee..c06a201 100644 --- a/corrlib/initialization.py +++ b/corrlib/initialization.py @@ -3,7 +3,6 @@ import sqlite3 import os from .tracker import save, init from pathlib import Path -from .tools import CONFIG_FILENAME def _create_db(db: Path) -> None: @@ -88,7 +87,7 @@ def _write_config(path: Path, config: ConfigParser) -> None: config: ConfigParser The configuration to be used as a ConfigParser, e.g. generated by _create_config. """ - with open(os.path.join(path, CONFIG_FILENAME), 'w') as configfile: + with open(os.path.join(path, '.corrlib'), 'w') as configfile: config.write(configfile) return diff --git a/corrlib/tracker.py b/corrlib/tracker.py index 1bae1b4..a6e9bf4 100644 --- a/corrlib/tracker.py +++ b/corrlib/tracker.py @@ -3,7 +3,7 @@ from configparser import ConfigParser import datalad.api as dl from typing import Optional import shutil -from .tools import get_db_file, CONFIG_FILENAME +from .tools import get_db_file from pathlib import Path @@ -21,7 +21,7 @@ def get_tracker(path: Path) -> str: tracker: str The tracker used in the dataset. """ - config_path = os.path.join(path, CONFIG_FILENAME) + config_path = os.path.join(path, '.corrlib') config = ConfigParser() if os.path.exists(config_path): config.read(config_path)