Skip to content
Snippets Groups Projects
Commit 3694fa23 authored by Andreas Dedner's avatar Andreas Dedner
Browse files

minor fix

parent 56bb6619
Branches
Tags
1 merge request!790Feature/add python bindings
......@@ -541,8 +541,7 @@ def make_dune_py_module(dune_py_dir=None):
dune_py_dir = get_dune_py_dir()
descFile = os.path.join(dune_py_dir, 'dune.module')
if not os.path.isfile(descFile):
if not os.path.isdir(dune_py_dir):
os.makedirs(dune_py_dir, exist_ok)
os.makedirs(dune_py_dir, exist_ok=True)
with Lock(os.path.join(self.dune_py_dir, 'lock-module.lock'), flags=LOCK_EX):
logger.info('Creating new dune-py module in ' + dune_py_dir)
# create python/dune/generated
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment