From 5a6ab34565fa3d783337a68e07e3500361c8fcf5 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 4 Mar 2019 00:06:32 +0100 Subject: 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! --- src/ee/tools/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ee/tools/__init__.py') 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 -- cgit v1.2.3