fedora-python / fedora-python/pathfix

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

Offen
#3 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
2
Forks
1
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

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

instead of the normal

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

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.