fedora-python / fedora-python/pathfix

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

Ouverte
#3 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
2
Forks
1
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.