码迷,mamicode.com
首页 > 其他好文 > 详细

sublime text 3 插件:package control

时间:2015-04-14 09:49:44      阅读:95      评论:0      收藏:0      [点我收藏+]

标签:

sublime text 3安装package control

1 import urllib.request,os,hashlib; h = eb2297e1a458f27d836c04bb0cbaf282 + d0e7a3098092775ccb37ca9d6b2e4b7d; pf = Package Control.sublime-package; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( http://packagecontrol.io/ + pf.replace( , %20)).read(); dh = hashlib.sha256(by).hexdigest(); print(Error validating download (got %s instead of %s), please try manual install % (dh, h)) if dh != h else open(os.path.join( ipp, pf), wb ).write(by)

Ctrl+~ 或者通过 View -> Show Console 

文章参考https://packagecontrol.io/installation

sublime text 3 插件:package control

标签:

原文地址:http://www.cnblogs.com/mota/p/4423942.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!