diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-03-04 00:06:32 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-03-04 00:06:32 +0100 |
commit | 5a6ab34565fa3d783337a68e07e3500361c8fcf5 (patch) | |
tree | c0d4fd9f6986351a543838fabc3dacf8d9ad5fb1 /src/ee/tools/__init__.py | |
parent | 650b4ad3774c4cc454a02073808d981f6873036d (diff) | |
download | ee-python-5a6ab34565fa3d783337a68e07e3500361c8fcf5.tar.gz ee-python-5a6ab34565fa3d783337a68e07e3500361c8fcf5.tar.bz2 ee-python-5a6ab34565fa3d783337a68e07e3500361c8fcf5.tar.xz ee-python-5a6ab34565fa3d783337a68e07e3500361c8fcf5.zip |
o PartDB: don't die if the directory exist *and* is empty. Ninja creates
empty parent directories.
o PartDB: escape some path names.
o new comamnd: "ninja". Generates a build.ninja from a sch. Not done!
Diffstat (limited to 'src/ee/tools/__init__.py')
-rw-r--r-- | src/ee/tools/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ee/tools/__init__.py b/src/ee/tools/__init__.py index 68e3adc..12916ca 100644 --- a/src/ee/tools/__init__.py +++ b/src/ee/tools/__init__.py @@ -1,4 +1,5 @@ import os.path + from colors import color @@ -13,7 +14,7 @@ def _mkdir_and_open(path): def mk_parents(path: str): - dirname = os.path.dirname(path) + dirname = os.path.diŒrname(path) if len(dirname) == 0: return |