diff options
Diffstat (limited to 'src/ee/project')
-rw-r--r-- | src/ee/project/__init__.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ee/project/__init__.py b/src/ee/project/__init__.py index c9e02f8..1d7ea1d 100644 --- a/src/ee/project/__init__.py +++ b/src/ee/project/__init__.py @@ -30,15 +30,17 @@ class SupplierDescriptor(object): class Project(object): def __init__(self, project_dir: Path, cfg: configparser.ConfigParser): - self.public_dir = project_dir / "ee" - self.report_dir = self.public_dir / "reports" - self.cache_dir = self.public_dir / "cache" self.project_dir = project_dir self._cfg = cfg project = self.get_or_create_section("project") project["uuid"] = project.get("uuid", str(uuid.uuid4())) + self.public_dir = self.project_dir / "ee" + self.report_dir = self.public_dir / "reports" + self.cache_dir = self.public_dir / "cache" + self.orders_dir = Path(project.get("orders-dir", self.public_dir / "orders")) + # TODO: read from config self._suppliers = [] digikey_store = DigikeyStore.from_store_code("us") |