Can .py be complied?

Mike Meyer mwm at mired.org
Sat Apr 30 17:22:23 EDT 2005


jfj <jfj at freemail.gr> writes:

> /* small program in C in self extracting archive
>   */
> if (have_application ("Python")) {
>    have_python:
>    system ("python.exe my_application.py")
> } else {
>    printf ("This software requires python. Wait until all the
> necessary components are being installed\n");
>    download_python_from_python_org();
>    system ("install_python.exe");
>    goto have_python;
> }

Goto. Ugh.

if (!have_application("Python")) {
    printf ("This software requires python. Wait until all the
 necessary components are being installed\n");
    download_python_from_python_org();
    system ("install_python.exe");
}
system("python.exe my_application.py");

                   <mike
-- 
Mike Meyer <mwm at mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.



More information about the Python-list mailing list