shadowsocks - python中hasattr(sys, "frozen")是什么意思?
巴扎黑
巴扎黑 2017-04-18 09:43:58
0
1
1876

最近在看shadowsocks源代码,有些地方不是很懂,比如如下代码中的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)
巴扎黑
巴扎黑

reply all(1)
PHPzhong

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!