By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,267 Members | 1,800 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,267 IT Pros & Developers. It's quick & easy.

NooB Question

P: n/a
How do you execute a .py in Linux with KDE? If I double click on my
program it opens Kwrite, for editing.
Aug 28 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
APCass enlightened us with:
How do you execute a .py in Linux with KDE? If I double click on my
program it opens Kwrite, for editing.


Make it executable (properties, permissions, executable). Make sure it
has #!/usr/bin/python as the first line.

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Frank Zappa
Aug 28 '05 #2

P: n/a
APCass wrote:
How do you execute a .py in Linux with KDE? If I double click on my
program it opens Kwrite, for editing.


Try inserting this as the first line of the file:

#!/usr/bin/env python
Aug 29 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.