开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜