Windows Python program boot from Boot

Source: Internet
Author: User

There are three options for booting from the boot:

1, put your Python program into a directory of C, and then put its shortcut to the Windows boot from the folder (folder location in the Start menu)

2, Python packaged into EXE, put into the Startup folder

3, start.c packaged into EXE, let start.c call your Python program

Start.c

#include <stdio.h><stdlib.h><sys/types.h><unistd.h>int Main (void) {   //setuid (0);   System ("python h:/code/client.py");    return 0 ;}


In the first scenario, it was foolish to set Python's default open mode to sublime, and the result was that the python was opened with sublime from the start ... So choose the second way, with Py2exe, the result of import ZMQ cause packaging error, has not been resolved, and finally use the third, in this machine can run normally, but the change of environment will be flash back. And finally back to the first kind ... Then a week passed ... "Cry"

Windows Python program boot from Boot

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.