Commit 9d693001 authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Fix `clear_cache_on_start` in pystencils.json

Due two weird recursive dependencies `clear_cache` will not be
available at this point. In-lining this function will make
the config key `cache.clear_cache_on_start: true` work again.
parent 4d80d708
Pipeline #30266 passed with stage
in 20 minutes and 40 seconds
......@@ -194,7 +194,7 @@ def read_config():
config['cache']['object_cache'] = os.path.expanduser(config['cache']['object_cache']).format(pid=os.getpid())
if config['cache']['clear_cache_on_start']:
clear_cache()
shutil.rmtree(config['cache']['object_cache'], ignore_errors=True)
create_folder(config['cache']['object_cache'], False)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment