mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 02:01:16 +00:00
fw: add cache subdir under $WA_USER_DIRECTORY
Add a sub-directory for caching stuff.
This commit is contained in:
parent
8a2c660fdd
commit
770d2b2f0e
@ -482,6 +482,10 @@ class MetaConfiguration(Configuration):
|
||||
def plugins_directory(self):
|
||||
return os.path.join(self.user_directory, 'plugins')
|
||||
|
||||
@property
|
||||
def cache_directory(self):
|
||||
return os.path.join(self.user_directory, 'cache')
|
||||
|
||||
@property
|
||||
def plugin_paths(self):
|
||||
return [self.plugins_directory] + (self.extra_plugin_paths or [])
|
||||
|
@ -42,6 +42,7 @@ def init_user_directory(overwrite_existing=False): # pylint: disable=R0914
|
||||
os.makedirs(settings.user_directory)
|
||||
os.makedirs(settings.dependencies_directory)
|
||||
os.makedirs(settings.plugins_directory)
|
||||
os.makedirs(settings.cache_directory)
|
||||
|
||||
generate_default_config(os.path.join(settings.user_directory, 'config.yaml'))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user