|
|
|
@ -82,6 +82,7 @@ active_user = pwd.getpwuid(os.geteuid())[0]
|
|
|
|
# Needed so the RPM can call setup.py and have modules land in the
|
|
|
|
# Needed so the RPM can call setup.py and have modules land in the
|
|
|
|
# correct location. See #1277 for discussion
|
|
|
|
# correct location. See #1277 for discussion
|
|
|
|
if getattr(sys, "real_prefix", None):
|
|
|
|
if getattr(sys, "real_prefix", None):
|
|
|
|
|
|
|
|
# in a virtualenv
|
|
|
|
DIST_MODULE_PATH = os.path.join(sys.prefix, 'share/ansible/')
|
|
|
|
DIST_MODULE_PATH = os.path.join(sys.prefix, 'share/ansible/')
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
DIST_MODULE_PATH = '/usr/share/ansible/'
|
|
|
|
DIST_MODULE_PATH = '/usr/share/ansible/'
|
|
|
|
|