diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-05-27 08:52:38 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-05-27 08:52:38 +0200 |
commit | 0259c6f907875b54e5d1df4bc89efa1c293d2812 (patch) | |
tree | d27f62ac6eb6fc09d8e989088978d959176ca6dd /src/ee/tools/__init__.py | |
parent | 101d17f0993795769fa125d26ceec71ccfecd057 (diff) | |
download | ee-python-0259c6f907875b54e5d1df4bc89efa1c293d2812.tar.gz ee-python-0259c6f907875b54e5d1df4bc89efa1c293d2812.tar.bz2 ee-python-0259c6f907875b54e5d1df4bc89efa1c293d2812.tar.xz ee-python-0259c6f907875b54e5d1df4bc89efa1c293d2812.zip |
Adding Soufflé based reasoning on parts. Replacing default configuration
with applying python function with this new reasoner.
Diffstat (limited to 'src/ee/tools/__init__.py')
-rw-r--r-- | src/ee/tools/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
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) |