On Dec 15, 9:01 am, [EMAIL PROTECTED] wrote: > I have created what amounts to a simple GUI email sending program > using Python + wxPython. I have modified the mailto registration in > the Windows Registry so that it launches the script when someone > clicks on someone's email link in a web page. > > While this works great if I create a convoluted path command as the > registry entry and pass in the email argument to the script,
It would help if you would give an actual code example of what you mean by "convoluted path command" and "pass in the email argument to the script". > it > doesn't work at all if I turn my python file into an exe using py2exe. "it doesn't work" is user-speak. What does it do? Does it execute the executable at all? If not, check your "convoluted path". If so, what arguments are received? > > How does one get a python file to accept arguments when said script > has been turned into an executable? If the script is expecting its arguments in sys.argv, I would expect that to work with an executable also. My guess is that you are falling foul of some argument-quoting problem. I also guess that you have not tried something like the following at the start of your script: print >> your_log_file, "sys.argv:", repr(sys.argv) and run it both as a script and an executable. Have you tried running the executable stand-alone e.g. Start | Run, type in your_exe_file [EMAIL PROTECTED] or whatever the argument(s) are? HTH, John -- http://mail.python.org/mailman/listinfo/python-list