Skip to content

Don't write /usr/bin/python3 into code #157

@BailPlus

Description

@BailPlus

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.

IMG_20240630_132925.jpg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions