From 5492006ae9e0618217968cbaab14e98c756d780d Mon Sep 17 00:00:00 2001 From: Sylvain Joyeux Date: Wed, 18 Apr 2018 15:12:22 -0300 Subject: [PATCH] provide config/orogen/.cache as a cache directory for orogen configuration files --- lib/syskit/task_configuration_manager.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/syskit/task_configuration_manager.rb b/lib/syskit/task_configuration_manager.rb index 3737c9574..bb97d95f5 100644 --- a/lib/syskit/task_configuration_manager.rb +++ b/lib/syskit/task_configuration_manager.rb @@ -97,6 +97,14 @@ def reload Array.new end end + + # The cache directory used by the Syskit app to speed up configuration loading + def cache_dir + File.join(app.app_dir, 'config', 'orogen', '.cache') + end + + def load_from_yaml(path, cache_dir: self.cache_dir) + super + end end end -