From: Stani's Python Editor <[EMAIL PROTECTED]>
This is probably very easy, but I don't find how to do it. I want to
execute this command if an user clicks on the icon of the alias on the
desktop:

/usr/bin/pythonw path/gui.pyw


Like other people said, you probably don't want to do that, but unlike other
people, I'll answer your question.

mkdir ~/Desktop/MyProg.app
echo '#!/usr/bin/env pythonw /path/gui.pyw' > ~/Desktop/MyProg.app/MyProg
chmod +x ~/Desktop/MyProg.app/MyProg

double click MyProg on the desktop and it should launch your python program
using pythonw

--
-alfred
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to