warvyvr / Blog

only use issue as blog
0 stars 1 forks source link

sublime3添加package manager的方法 #2

Open warvyvr opened 8 years ago

warvyvr commented 8 years ago

复制下面的代码片段到sublime3控制台中,执行. import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())

warvyvr commented 7 years ago

move it to wiki