aboutsummaryrefslogtreecommitdiff
path: root/src/ee/project
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-08-02 15:09:07 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2019-08-02 15:09:07 +0200
commit34e79ef18fc6260a4f255e6087b011d8ff741a43 (patch)
tree43e99aeddd9843fbeedf6dc1b0e5967d469bbb90 /src/ee/project
parentc8250596fc6b50f2c92fb3952491ddfcbf0f9781 (diff)
downloadee-python-34e79ef18fc6260a4f255e6087b011d8ff741a43.tar.gz
ee-python-34e79ef18fc6260a4f255e6087b011d8ff741a43.tar.bz2
ee-python-34e79ef18fc6260a4f255e6087b011d8ff741a43.tar.xz
ee-python-34e79ef18fc6260a4f255e6087b011d8ff741a43.zip
odoo: wip
Diffstat (limited to 'src/ee/project')
-rw-r--r--src/ee/project/__init__.py8
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")