"서브라임텍스트 패키지 컨트롤 설치"의 두 판 사이의 차이

10번째 줄: 10번째 줄:
*웹브라우저 https://sublime.wbond.net/installation 접속
*웹브라우저 https://sublime.wbond.net/installation 접속
*SUBLIME TEXT 2 탭버튼 클릭, 그 아래 내용 드래그하여 복사({{키|Ctrl|C}})
*SUBLIME TEXT 2 탭버튼 클릭, 그 아래 내용 드래그하여 복사({{키|Ctrl|C}})
{{인용문|
<nowiki>
<nowiki>
import urllib2,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler()) ); by = urllib2.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), 'wb' ).write(by) if dh == h else None; print('Error validating download (got %s instead of %s), please try manual install' % (dh, h) if dh != h else 'Please restart Sublime Text to finish installation')
import urllib2,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler()) ); by = urllib2.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), 'wb' ).write(by) if dh == h else None; print('Error validating download (got %s instead of %s), please try manual install' % (dh, h) if dh != h else 'Please restart Sublime Text to finish installation')
</nowiki>
</nowiki>
}}
*서브라임텍스트 콘솔 영역 하단 명령어 창에 붙여넣기({{키|Ctrl|V}}), {{Enter}}
*서브라임텍스트 콘솔 영역 하단 명령어 창에 붙여넣기({{키|Ctrl|V}}), {{Enter}}
*그러면 바로 설치가 되고 콘솔에는 다음 내용이 나온다.
*그러면 바로 설치가 되고 콘솔에는 다음 내용이 나온다.

2014년 9월 5일 (금) 09:33 판

서브라임텍스트 Package Control 설치
서브라임텍스트 패키지 관리자 설치

1 사전 작업

2 방법

import urllib2,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler()) ); by = urllib2.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), 'wb' ).write(by) if dh == h else None; print('Error validating download (got %s instead of %s), please try manual install' % (dh, h) if dh != h else 'Please restart Sublime Text to finish installation')

  • 서브라임텍스트 콘솔 영역 하단 명령어 창에 붙여넣기(Ctrl+V), Enter
  • 그러면 바로 설치가 되고 콘솔에는 다음 내용이 나온다.
Please restart Sublime Text to finish installation
  • 서브라임텍스트 종료 후 다시 실행
  • 콘솔 창을 열어(Ctrl+`) 다음과 유사한 내용이 보이면 정상
... (생략)
reloading /D/Portable/Sublime Text 2.0.2 x64/Data/Packages/User/Package Control.sublime-settings
Package Control: No updated packages

3 같이 보기

4 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}