From 50ee4b871bc9d0076cabaa5d2ea4ad1ba7b8e15a Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 25 Mar 2019 11:55:54 +0100 Subject: ninja tool: changing to generate the files in the current directory. build.ninja.j2: nits. olinuxino: Improving parsing of part values. --- src/ee/project/__init__.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/ee/project') diff --git a/src/ee/project/__init__.py b/src/ee/project/__init__.py index a1f042f..5943a7c 100644 --- a/src/ee/project/__init__.py +++ b/src/ee/project/__init__.py @@ -6,8 +6,11 @@ def load_config(project_dir: Path) -> configparser.ConfigParser: config = configparser.ConfigParser() config_path = project_dir / ".ee" / "config" - with config_path.open("r") as f: - config.read_file(f, source=str(config_path)) + try: + with config_path.open("r") as f: + config.read_file(f, source=str(config_path)) + except FileNotFoundError: + pass return config -- cgit v1.2.3