2
Hello, I’m starting to learn Python, I know only the basics, I wanted to make a script self executable (autorun), but I searched all over the internet and I couldn’t find anywhere to do an autorun in Python, so is there any way to do this? If yes, could someone explain how and leave an example code for me see how it works? I thank you for the answer
By the way, preferably in Python 3
You can define what is an auto-executable script?
– Woss
It would be for example a script already after compiled, which starts automatically, when I plug a pen drive into the machine for example
– Luiz Oleia
depends on the operating system, but in any case this script will need to be a service that runs when such an event occurs on the operating system. In case you need to find a library that does this and turn your script into a service.
– Samuel Haidu
Ah understood, maybe it’s easier then I leave by Java
– Luiz Oleia