Skip to content
Snippets Groups Projects
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
No related merge requests found
......@@ -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)
......
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