findimports icon indicating copy to clipboard operation
findimports copied to clipboard

Suggestion: a more general shabang?

Open gmseabra opened this issue 3 years ago • 1 comments

Hey, thanks for developing this package. It just proved really useful for me :-)

BTW, may I suggest you use "#!/usr/bin/env python" in the shebang? I believe it is more portable.

See: https://stackoverflow.com/questions/6908143/should-i-put-shebang-in-python-scripts-and-what-form-should-it-take

All the best, G.

gmseabra avatar Jan 11 '22 23:01 gmseabra

Well, ideally you'd use pipx run findimports or pipx install findimports or pip install --user findimports or some other variation where pip takes care of generating the right shebang.

But sure, #!/usr/bin/env python is fine. Or, maybe better, #!/usr/bin/env python3?

mgedmin avatar Jan 12 '22 19:01 mgedmin