Make *.py files runnable

Hey Sup Forums I know this is a stupid question. Is there any way to make python files runnable without including the shebang outlined here: stackoverflow.com/questions/6908143/should-i-put-shebang-in-python-scripts-and-what-form-should-it-take

ie I am currently able to put the following at the top of *.py files:
#!/usr/bin/env python3

then $ chmod +x file.py

then "$ ./file.py" works

I want to just be able to change the perms and then run without the shebang

Possible? How to do this?

Thanks in advance

Attached: 1513533844461.jpg (1600x1067, 1.29M)

Just run "python3 file.py" - won't need hashbang or chmod

Stick #!
In the top, mark it as +x, and then softlink it to one of your path dirs

Attached: brsinlet.jpg (555x445, 36K)

Yes, but also no. You can do any variation of telling the os to run your file with the python interpreter, but it's either calling the file as an argument to the interpreter ($ python file.py) or a shebang or a bash file doing it for you (but then you need a bash shebang).
The point is, to run whatever you are doing, it still needs to be run through the interpreter.

Attached: 1498648995223.jpg (1280x854, 142K)

use Windows, unironically

>I know this is a stupid question
/thread

Whats wrong with her arm?

Attached: 1514150527369.jpg (1524x2032, 643K)

look at how dirty her feet are

best i can come up with is that she had a bad skin graft on that arm after suffering severe burns (heat, friction, acid, etc).

Hairy arms.

would be really weird if only one of her arms had that much hair on it, and that she wouldn't shave it if she's a model.

stop using that kiddy language and start using forth

>I want to just be able to change the perms and then run without the shebang
Why? The shebang is simple, and that's how it works in *nix systems.

If you use a DE you can probably associate .py files to open with the interpreter by default. Then opening them in the file manager will run them without needing a shebang.

p y i n s t a l l e r

I'd she her bang alright.

i think binfmt_misc can do this

>her

user I..

Forth is great if you want to be jobless

aye

Gross dirty feet.

Disgusting.

Make it executable and then make a .desktop file of it. It should auto-execute it when you launch the desktop application.

>footfag
die

>runnable

Attached: 1512916503971.png (827x504, 484K)

>he doesn't like beautiful clean feet

Only one fag here, boy.

Go from a dynamically typed language to a typeless language? You fucking madman.

t. guy that does everything in haskell, idris, agda, coq/gallina, and ocaml

python pickles or pyinstaller

>I want to just be able to change the perms and then run without the shebang
You can't. Unix systems decide if something's runnable based on the magic number at the beginning of the file. If it doesn't see #! or \x7F ELF, it doesn't know how to open the damn thing.

Or work for NASA

>friction
lost