4 ms·
I'll go out on a limb and give general advice. I'm happy to receive constructive criticism in case I'm wrong. The OS package manager is for system programs to
by fnord123 10y ago
I'll go out on a limb and give general advice. I'm happy to receive constructive criticism in case I'm wrong.
The OS package manager is for system programs to administer the system. So if you have an admin tool it should run with `#!/usr/local/bin/python -E` (or wherever Python is installed). Note: It uses a hard coded path for `python` and it uses `-E` to ignore PYTHONPATH. This is so no matter how trashed your environment becomes, you can still run administration tools written in Python. The OS package manager should be installing programs that adhere to this policy.
Your applications that you develop should be using `#!/usr/bin/env python -S` This uses `env` to determine the correct Python version that your script should use. It also uses `-S` so it doesn't accidentally pull in an OS installed library which may have conflicts with libraries that you want to use.