diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-03-25 11:55:54 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-03-25 12:58:59 +0100 |
commit | 50ee4b871bc9d0076cabaa5d2ea4ad1ba7b8e15a (patch) | |
tree | 05ee9273b41efa1d9268b32f829881c6f6d06eaa /src/ee/project | |
parent | b230198488ef670ed6e374e0d39d5f4e6ac07e8d (diff) | |
download | ee-python-50ee4b871bc9d0076cabaa5d2ea4ad1ba7b8e15a.tar.gz ee-python-50ee4b871bc9d0076cabaa5d2ea4ad1ba7b8e15a.tar.bz2 ee-python-50ee4b871bc9d0076cabaa5d2ea4ad1ba7b8e15a.tar.xz ee-python-50ee4b871bc9d0076cabaa5d2ea4ad1ba7b8e15a.zip |
ninja tool: changing to generate the files in the current directory.
build.ninja.j2: nits.
olinuxino: Improving parsing of part values.
Diffstat (limited to 'src/ee/project')
-rw-r--r-- | src/ee/project/__init__.py | 7 |
1 files changed, 5 insertions, 2 deletions
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 |