diff --git a/dnf/const.py.in b/dnf/const.py.in index 5c1fef0fd5..bcadc80410 100644 --- a/dnf/const.py.in +++ b/dnf/const.py.in @@ -19,7 +19,6 @@ # from __future__ import unicode_literals -import sysconfig CONF_FILENAME='/etc/dnf/dnf.conf' # :api CONF_AUTOMATIC_FILENAME='/etc/dnf/automatic.conf' @@ -50,7 +49,7 @@ VERBOSE_LEVEL=6 PREFIX=NAME.lower() PROGRAM_NAME=NAME.lower() # Deprecated - no longer used, Argparser prints program name based on sys.argv PLUGINCONFPATH = '/etc/dnf/plugins' # :api -PLUGINPATH = '%s/dnf-plugins' % sysconfig.get_path('purelib') +PLUGINPATH = '@PYTHON_INSTALL_DIR@/dnf-plugins' VERSION='@DNF_VERSION@' USER_AGENT = "dnf/%s" % VERSION