fonttools icon indicating copy to clipboard operation
fonttools copied to clipboard

Update shebang

Open luckman212 opened this issue 1 year ago • 4 comments

Shebang was hardcoded to /usr/bin/python which will fail on many modern OSes.

luckman212 avatar Oct 21 '24 13:10 luckman212

I don't think anybody uses those and we should probably remove them all. You are not expected to run this (or similar modules) like scripts ./Lib/fontTools/mtiLib/__init__.py, but with either python -m fontTools.mtiLib (where python is whatever is the python executable fonttools is importable from) or fonttools mtiLib (using the fonttools cli helper, which does the same as python -m fontTools.).

/cc @behdad

anthrotype avatar Oct 21 '24 14:10 anthrotype

Got it. My linter caught this which is the only reason I flagged it. If it's a non-issue sorry to have bothered.

luckman212 avatar Oct 21 '24 15:10 luckman212

No problem and thanks for flagging this

anthrotype avatar Oct 21 '24 15:10 anthrotype

Should be removed.

behdad avatar Oct 21 '24 17:10 behdad

I removed the shebang completely.

khaledhosny avatar Apr 19 '25 23:04 khaledhosny