开发者

Python Resources

开发者 https://www.devze.com 2023-02-27 10:10 出处:网络
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 exec

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

精彩评论

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