-
Setuptools do create a script for each entry point by default. My users can start my application usually as normal users but also as root. For the latter I use policy-kit (
There are also some other situations and cases where I maybe need to use my own script. Sometimes I have to modify/set environment variables before the application starts. Can I achive this with entry_points in pyproject.toml? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @buhtz , the executable wrappers for the entry points are created by I imagine that it is a default template and cannot be changed. Maybe you can try creating a script that spwans a subprocess and then sets up the correct env vars? |
Beta Was this translation helpful? Give feedback.
-
Please find example code demonstrating the solution here. |
Beta Was this translation helpful? Give feedback.
Please find example code demonstrating the solution here.