PyInstaller 设置sys._MEIPASS
属性让应用程序知道在哪里可以找到其捆绑的资源。来源:这个答案 https://stackoverflow.com/q/7674790/119527.
我知道什么_MEIPASS
does. 名字是什么_MEIPASS
意思是?它代表什么?
- 这是从
MEIPASS2
环境变量在2.0版本 https://github.com/pyinstaller/pyinstaller/blob/4ed9c00ccbe70587709cdf1674c68d39c758cfbd/doc/CHANGES.rst#20-2012-08-08.
- 里面什么也没有官方文档 https://github.com/pyinstaller/pyinstaller/blob/master/doc/advanced-topics.rst甚至暗示了这个变量的词源。
- 它似乎从 PyInstaller 出现以来就已经存在了。
根据代码战士0 https://github.com/codewarrior0(又名:David Vierra)pyinstaller 开发人员之一:
它来自PyInstaller的祖先McMillan E企业I安装程序。但不确定 PASS 部分。
(Source https://github.com/pyinstaller/pyinstaller/issues/2610#issuecomment-301948362)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)