P
P
Povsekakiy Ivanov2014-08-20 16:46:34
linux
Povsekakiy Ivanov, 2014-08-20 16:46:34

How to run a Python script from a non-console?

How to run a Python script from a non-console? I want the executable file to start working after two clicks (Linux Ubuntu 14.04.
Thank you in advance!!!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
zorruch, 2014-08-20
@Povsekakij

how exactly did you register the rights? Do ls -l to the file and head -n 3 to it.
In the first line of the file, the interpreter must be set, in your case - Python

D
Don Kaban, 2014-08-21
@donkaban

#!/usr/bin/env python

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question