mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Added a 'set_up' and 'tear_down' which are like tasks, but execute before and after roles.
This commit is contained in:
@@ -61,6 +61,16 @@ class PluginLoader(object):
|
||||
|
||||
self._extra_dirs = []
|
||||
|
||||
def print_paths(self):
|
||||
''' Returns a string suitable for printing of the search path '''
|
||||
|
||||
# Uses a list to get the order right
|
||||
ret = []
|
||||
for i in self._get_paths():
|
||||
if i not in ret:
|
||||
ret.append(i)
|
||||
return os.pathsep.join(ret)
|
||||
|
||||
def _get_package_path(self):
|
||||
''' Gets the path of a Python package '''
|
||||
|
||||
|
||||
Reference in New Issue
Block a user