Skip to content

Commit 10e684c

Browse files
committed
docs: add example shell script for rewriting shebangs
As suggested in #32. And since we have this quirk documented, let's close #32.
1 parent b54163c commit 10e684c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/quirks.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ that absolute path.
1515

1616
To work around this issue, you can mass rewrite the shebangs to
1717
point the directory where the distribution is extracted/installed
18-
to.
18+
to. Here is a sample shell one-liner to get you started::
19+
20+
$ find install/bin/ -type f -exec sed -i '1 s/^#!.*python.*/#!.\/python3/' {} \;
1921

2022
Alternatively, you can sometimes execute ``python3 -m <module>``
2123
to get equivalent functionality to what the installed script would

0 commit comments

Comments
 (0)