Combine additional executables with py2exe

I have a python script that calls two Sysinternals tools (sigcheck and accesschk). Is there a way that I can combine these executables in py2exe so that subprocess.Popen can see this at startup?


Full explanation: My script is executed to execute on a network share (S: \ share \ my_script.exe), and it calls hundreds of sigcheck and accesscheck calls. If sigcheck and accesschk are also on the server, they seem to be transferred to the host, once, once, again transfer the host, called a second time, on. And then, until almost 400-500 calls are completed.

Perhaps I will return to copying these two executables to the host (C :) and then deleting them when I finish ... how would you solve this problem?

+3
source share
1 answer

I could be wrong about that, but I don't think that is what py2exe was for. It is more about what you are distributing than about how you are distributing. I think you can look for a Windows installer option . Perhaps you could add executables as data files or scripts using distutils.

arggg Why don't my data_files get into a zip file?

I started using paver for this kind of thing. This makes it easy to override commands or create new commands that allow you to put some new files in sdist.

+2
source

Source: https://habr.com/ru/post/1720034/


All Articles