|
|
|
|
|
by rascul
733 days ago
|
|
> Firstly, Linux seems to have no concept of "associated program", so you can never "just" call .py file, and let the shell to know to use python to execute it. Sure, you can chmod +x to the script, but then you have to add a shebang line directly to the script itself, which I always feel uncomfortable since it's hard-coded (what if in future I don't want to execute my .py script with `/usr/bin/python` but `/usr/bin/nohtyp`?). Might be you could use binfmt_misc for that. https://www.kernel.org/doc/html/latest/admin-guide/binfmt-mi... |
|
https://blog.cloudflare.com/using-go-as-a-scripting-language...