sudo by default does not load any variables from env.d, therefore PYTHONPATH is not read. This makes using apps that depend on python modules fail when using sudo.
An easy fix is to add PYTHONPATH to the env_keep settings in /etc/sudoers
Defaults env_keep += PYTHONPATH
At the very least a message should be given to the user when installing sudo that this is necessary.
1.
|
eclean distfiles fails to run | Closed | Unassigned |