in reply to Re^2: did you mean python
in thread did you mean python
Yes, execvpe() is a GNU extension. Replace said function and its params with this: execv("/usr/bin/python", argv); or add #define _GNU_SOURCE at the beginning if your compiler supports GNU extensions, e.g. gcc and I think clang. For M$ alternatives, good luck.
P.S. You also need to adjust the (real) python path "/usr/bin/python" with whatever you have. And make sure that the real python executable does not shadow your newly created one. The new one must have precedence. That depends on your PATH env var and OS specific rules.
P.S.2 The side-effect of this change would be that your current environment is not passed to the (real) python executable. I am not sure what happens if your python script expects env vars. Perhaps it will read the system-wide ones and ignore those session/terminal-specific ones you may have set earlier.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: did you mean python
by Anonymous Monk on Jan 28, 2026 at 14:10 UTC | |
by bliako (Abbot) on Jan 28, 2026 at 19:41 UTC | |
by Anonymous Monk on Jan 29, 2026 at 04:01 UTC | |
by bliako (Abbot) on Jan 29, 2026 at 12:00 UTC | |
by Anonymous Monk on Jan 29, 2026 at 04:10 UTC |