aboutsummaryrefslogtreecommitdiff
path: root/src/ee/project
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-03-25 11:55:54 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2019-03-25 12:58:59 +0100
commit50ee4b871bc9d0076cabaa5d2ea4ad1ba7b8e15a (patch)
tree05ee9273b41efa1d9268b32f829881c6f6d06eaa /src/ee/project
parentb230198488ef670ed6e374e0d39d5f4e6ac07e8d (diff)
downloadee-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__.py7
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