On 2017-08-27 07:18, Mats Wichmann wrote:


or perhaps less intuitively, stick a first line in it to tell the system
to have Python run it, so your script looks like this (there are
possible variants on that magic first line, but this one should work
whichever your platform is, as long as it is the first line):

#!/usr/bin/env python
import easygui
easygui.msgbox("Hello there")


and you can then run the script directly.


... After first adjusting permissions:

$ chmod 755 example,py

_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to