Thrust
Thrust

Reputation: 92

How do I open a file with any other extension like .app from a exe file?

Hi I am working on a Programming Language. I completed all code I should just convert it into .exe file but how can I open any other extension (Like:PL.app). Can anyone help.

Thank you

Upvotes: -1

Views: 59

Answers (1)

joao
joao

Reputation: 2293

If you wrote python code in a file called foobar.py, then you can run your code simply by calling

python foobar.py

at the prompt (linux/bash or windows/cmd). There is no need to convert it into an exe just for running it.

There are few scenarios where you might want to make an exe out of your python code (that's a somewhat advanced usage), for that you can use something like PyInstaller or other tools described in the Hitchhiker's Guide.

Upvotes: 1

Related Questions