aboutsummaryrefslogtreecommitdiff
path: root/src/ee/project
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-03-29 16:41:25 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2019-03-29 16:41:25 +0100
commit73c63d8c307bdbeb534c24fb51d4093c2fcbb86d (patch)
treed568efbdbc05d16de5635fa0011f96286f807b7e /src/ee/project
parent87e603088ad8e311c11e3e072340588175cc4e6e (diff)
downloadee-python-73c63d8c307bdbeb534c24fb51d4093c2fcbb86d.tar.gz
ee-python-73c63d8c307bdbeb534c24fb51d4093c2fcbb86d.tar.bz2
ee-python-73c63d8c307bdbeb534c24fb51d4093c2fcbb86d.tar.xz
ee-python-73c63d8c307bdbeb534c24fb51d4093c2fcbb86d.zip
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.
Diffstat (limited to 'src/ee/project')
-rw-r--r--src/ee/project/__init__.py3
1 files changed, 2 insertions, 1 deletions
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