最近在看shadowsocks源代码,有些地方不是很懂,比如如下代码中的frozen是啥意思?官方文档没有查到~
frozen
# fix py2exe if hasattr(sys, "frozen") and sys.frozen in \ ("windows_exe", "console_exe"): p = os.path.dirname(os.path.abspath(sys.executable)) os.chdir(p)
Related to the cx_freeze library. This is a library used to package programs into exe under windows and inject a variable frozen into sys.
Related to the cx_freeze library. This is a library used to package programs into exe under windows and inject a variable frozen into sys.