Skip to content

Add #!/usr/bin/env python at the beginning of ashes.py #43

Description

@cipriancraciun

At the moment ashes.py starts with no #!, although it also supports running as script.

Thus, if one downloads the latest release, and just makes the ashes.py executable, and then tries to run it, the OS will invoke it by using sh as the interpreter. (Which yields quite some strange behaviour if one has installed ImageMagick, because import is a valid command.)

By adding #!/usr/bin/env python as the first line of the ashes.py it behaves as expected (i.e. running with the right interpreter), and in the worst case scenario (although this #! is the generally accepted one for Python) it would just fail without interpreting the rest of the Python code as shell code.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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