mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 10:51:24 -07:00
Revert "Merge pull request #4874 from leth/editable_install"
This reverts commit15b89b45e1
, reversing changes made to3d836a1ab7
.
This commit is contained in:
parent
53a3671df4
commit
f3a4705a9c
2 changed files with 13 additions and 25 deletions
|
@ -82,13 +82,13 @@ p = load_config_file()
|
|||
|
||||
active_user = pwd.getpwuid(os.geteuid())[0]
|
||||
|
||||
DIST_MODULE_PATH = os.path.join(sys.prefix, 'share/ansible/')
|
||||
EDITABLE_MODULE_PATH = os.path.normpath(
|
||||
os.path.join(os.path.dirname(__file__), '../../library'))
|
||||
|
||||
if not os.path.exists(DIST_MODULE_PATH) \
|
||||
and os.path.exists(EDITABLE_MODULE_PATH):
|
||||
DIST_MODULE_PATH = EDITABLE_MODULE_PATH
|
||||
# Needed so the RPM can call setup.py and have modules land in the
|
||||
# correct location. See #1277 for discussion
|
||||
if getattr(sys, "real_prefix", None):
|
||||
# in a virtualenv
|
||||
DIST_MODULE_PATH = os.path.join(sys.prefix, 'share/ansible/')
|
||||
else:
|
||||
DIST_MODULE_PATH = '/usr/share/ansible/'
|
||||
|
||||
# check all of these extensions when looking for yaml files for things like
|
||||
# group variables
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue