Skip to content

Instantly share code, notes, and snippets.

@iberianpig
Last active August 29, 2015 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iberianpig/8701354 to your computer and use it in GitHub Desktop.
Save iberianpig/8701354 to your computer and use it in GitHub Desktop.
sublime-text 3でのPackageControlのプロキシ越しのインストール
import urllib.request,ospf = 'Package Control.sublime-package'ipp = sublime.installed_packages_path()urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler( {"http": "http://[user]:[password]@[proxy_IP]:[proxy_port]"} ) ))open(os.path.join(ipp, pf), 'wb').write( urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20') ).read())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment