Python Resources
Is there anyway to incorporate a "resources" folder with .exe's inside of it, with my python program?? I basically want to bundle .exe's with my .py file... My python program depends on these executables... If this isn't possible, would it be possible开发者_运维知识库 to convert .exe to .py???
For the first one, yes. Just put it in a known subdirectory and manipulate __file__
with os.path
to get the path to pass to subprocess
.
For the second... no. Just no.
精彩评论