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

Steve D'Aprano steve+python at pearwood.info
Sun Dec 10 22:35:36 EST 2017


On Mon, 11 Dec 2017 11:29 am, Chris Angelico wrote:

> On Mon, Dec 11, 2017 at 10:10 AM, Rick Johnson
> <rantingrickjohnson at gmail.com> wrote:

>> 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

https://pypi.python.org/pypi/python-magic



-- 
Steve
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.




More information about the Python-list mailing list