From 73c63d8c307bdbeb534c24fb51d4093c2fcbb86d Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 29 Mar 2019 16:41:25 +0100 Subject: Project: o adding cache_dir field, useful for controlling where cached data is placed from a central place. o Updating tools to use this new variable. --- src/ee/project/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ee/project') diff --git a/src/ee/project/__init__.py b/src/ee/project/__init__.py index bca9984..1adbbde 100644 --- a/src/ee/project/__init__.py +++ b/src/ee/project/__init__.py @@ -9,7 +9,7 @@ from ee.xml.uris import DIGIKEY_URI def load_config(project_dir: Path) -> configparser.ConfigParser: config = configparser.ConfigParser() - config_path = project_dir / ".ee" / "config" + config_path = project_dir / "eeconfig" try: with config_path.open("r") as f: config.read_file(f, source=str(config_path)) @@ -29,6 +29,7 @@ class Project(object): def __init__(self, project_dir: Path, cfg: configparser.ConfigParser): self.report_dir = project_dir / "ee" / "reports" self.public_dir = project_dir / "ee" + self.cache_dir = project_dir / "ee" / "cache" self.project_dir = project_dir self._cfg = cfg -- cgit v1.2.3