In some circumstances, the path of python executable file isn't the fixed one. For example, it's in /data/data/com.termux/files/usr/bin/python. It results in playsound throws error on termux. For another example, one who compiles python by self can install it anywhere he/she wants. Instead, you could use sys.executable to automatically detect it.
In some circumstances, the path of python executable file isn't the fixed one. For example, it's in
/data/data/com.termux/files/usr/bin/python
. It results in playsound throws error on termux. For another example, one who compiles python by self can install it anywhere he/she wants. Instead, you could usesys.executable
to automatically detect it.