On Mon, 19 Dec 2022 at 04:56, <c.bu...@posteo.jp> wrote: > > Hello, > > when I install a package on a GNU/Linux system via "sudo python3 -m pip > install -e ." that defines entry points in its pyproject.toml the entry > point starter scripts are located in /usr/locale/bin. > > That folder is in PATH for "regular" root users and by "sudo su" roots > users. > > But I need to start that entry points via "pkexec". > But in the environment started by "pkexec" the PATH does not contain > /usr/local/bin. > > So what can I do? > > I don't need a hack or workaround but an "elegant" solution.
Does it have to be in path? Can't you say /usr/local/bin/entrypointname? Not sure what constitutes an elegant solution here. ChrisA -- https://mail.python.org/mailman/listinfo/python-list