From 0259c6f907875b54e5d1df4bc89efa1c293d2812 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 27 May 2019 08:52:38 +0200 Subject: Adding Soufflé based reasoning on parts. Replacing default configuration with applying python function with this new reasoner. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ee/tools/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/ee/tools/__init__.py') diff --git a/src/ee/tools/__init__.py b/src/ee/tools/__init__.py index 46004e9..112e306 100644 --- a/src/ee/tools/__init__.py +++ b/src/ee/tools/__init__.py @@ -26,5 +26,11 @@ def mk_parents(path: Union[str, Path]): if len(dirname) == 0: return + mk_dirs(dirname) + + +def mk_dirs(path: Union[str, Path]): + dirname = str(path) + if not os.path.isdir(dirname): os.mkdir(dirname) -- cgit v1.2.3