diff --git a/gnuhealth.spec b/gnuhealth.spec index 22c80a8..c47cf12 100644 --- a/gnuhealth.spec +++ b/gnuhealth.spec @@ -156,9 +156,9 @@ rmdir backend #Write environment changes to /etc/bash.bashrc.local cat > /etc/bash.bashrc.local << "EOF" alias cdlogs='cd /var/log/tryton' -alias cdexe='cd $(ls -d /usr/lib/python3.* )/site-packages/trytond' +alias cdexe='cd $(rpm --eval '%python3_sitelib')/site-packages/trytond' alias cdconf='cd /etc/tryton' -alias cdmods='cd $(ls -d /usr/lib/python3.* )/site-packages/trytond/modules' +alias cdmods='cd $(rpm --eval '%python3_sitelib')/site-packages/trytond/modules' alias editconf='${EDITOR} /etc/tryton/trytond.conf' alias cdutil='cd /usr/bin' export EDITOR=nano