fedora-python / fedora-python/pathfix

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

Open
#3 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.