Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

Chris Angelico rosuav at gmail.com
Sun Dec 10 19:29:52 EST 2017


On Mon, Dec 11, 2017 at 10:10 AM, Rick Johnson
<rantingrickjohnson at gmail.com> wrote:
> Rustom Mody wrote:
>
> [...]
>
>> Whether there was nothing wrong in what I did, the "wrong-
>> right" was de facto, or de jure… I will leave to more wise
>> persons than myself
>
> A file with no extension (regardless of the OS or desktop
> enviroment that it was created on), is like a sealed box with
> no label to indicate the contents.
>
> And it's not like we can just pick file up and shake
> it, in a crude attempt to intuit the contents.

No, but fortunately we have magic. And magic can tell us a lot about
what a file contains.

man 5 magic

ChrisA



More information about the Python-list mailing list