mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
vars_loader should get the path to the inventory + vars_plugins
This commit is contained in:
parent
ad08995989
commit
f1eb195ff5
2 changed files with 4 additions and 2 deletions
|
@ -68,9 +68,11 @@ class PluginLoader(object):
|
|||
ret += self._get_package_path()
|
||||
return ret
|
||||
|
||||
def add_directory(self, directory):
|
||||
def add_directory(self, directory, with_subdir=False):
|
||||
"""Adds an additional directory to the search path"""
|
||||
if directory is not None:
|
||||
if with_subdir:
|
||||
directory = os.path.join(directory, self.subdir)
|
||||
self._extra_dirs.append(directory)
|
||||
|
||||
def print_paths(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue