On 06/04/12 03:07, Michael Lewis wrote:
What if I want to send the executable to someone and have their machine run the script at startup? Assume I don't have access to their machine to add the script to the startup program group. How can I make that happen?
When you say executable in reference to a Python script you need to be careful about what you mean.
Because Python is an interpreted language the executable can be either the python interpreter (python.exe) or the script that the interpreter is executing (myscript.py).
If your friend already has Python installed on their computer (and many nowadays do) then you just need to send the python script and ask them to save it into their startup group (or more likely create a link to it in their startup group) If they are non computer literate you could write an installer or batch file that copied the file to the relevant place.
If your friend does not have Python installed you can either: 1) send them the Python installer and your script 2) get them to download and install python before running your script. 3) use a program like py2exe to bundle your script and the interpreter into a single self executing file HTH -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor