mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 22:51:23 -07:00
use DEFAULT_MODULE_PATH in setup.py so that there is a chance to override with ANSIBLE_LIBRARY env variable
This commit is contained in:
parent
8dc31f3093
commit
50bd14faa9
2 changed files with 2 additions and 4 deletions
4
setup.py
4
setup.py
|
@ -9,11 +9,11 @@ from ansible import __version__, __author__
|
|||
from distutils.core import setup
|
||||
|
||||
# find library modules
|
||||
from ansible.constants import DIST_MODULE_PATH
|
||||
from ansible.constants import DEFAULT_MODULE_PATH
|
||||
dirs=os.listdir("./library/")
|
||||
data_files = []
|
||||
for i in dirs:
|
||||
data_files.append((DIST_MODULE_PATH + i, glob('./library/' + i + '/*')))
|
||||
data_files.append((DEFAULT_MODULE_PATH + i, glob('./library/' + i + '/*')))
|
||||
|
||||
setup(name='ansible',
|
||||
version=__version__,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue