Skip to content

Fails to fix shebang of script installed with Python under a long path #3

Description

@jgosmann

When using a Python interpreter installed in a path that exceeds 127 characters installed scripts will have a shebang of the following form:

#!/bin/sh
'''exec' /some-very-long-path-to-your-python-interpreter-that-exceeds-127-characters/foooooooooooooooooooooooooooooobar/bin/python3.12 "$0" "$@"
' '''

instead of the normal

#!/some-short-path/bin/python3.12

pathfix fails to fix the form for long paths and leaves it unchanged.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions