본문 바로가기

Python

Python SYS 파라미터 및 변수

반응형

개인적인 기록을 위한 글입니다. 

 

목적 : 잊어버리기 쉬운 SYS 패키지의 파라미터 및 변수 정리

 

파이썬 버전 : 3.7

참고 URL : https://docs.python.org/ko/3.7/library/sys.html

 

sys — System-specific parameters and functions — Python 3.7.13 문서

sys — System-specific parameters and functions This module provides access to some variables used or maintained by the interpreter and to functions that interact strongly with the interpreter. It is always available. sys.abiflags On POSIX systems where P

docs.python.org

 

SYS

version 파이썬 버전을 나타낸다.
base_exec_prefix 파이썬의 실행 경로는 나타낸다.
- 필자와 같은 경우에는 가상환경에서 제대로 실행되었는지 확인할 때 사용한다.)
executable 해당 소스코드를 실행한 경로를 나타낸다.
 - 특정 프로그램에서 해당 소스코드를 실행한 경우 특정 프로그램의 경로가 나타남
 - 필자와 같은 경우에는 임베딩을 해서 사용해서 임베딩한 프로세스 위치가 나타남
platform 해당 os의 플랫폼이 표시된다. 
moudle 사용가능한 모듈이 표시된다.  

   

 

 

반응형

'Python' 카테고리의 다른 글

Python 네이버 밴드 - 키워드 분석  (0) 2022.07.09
Python 네이버 밴드 - 크롤링  (0) 2022.07.09
PIP 관련 명령어 정리  (0) 2022.06.09
python pip mirror 서버 설정  (0) 2022.05.31
파이썬 float형 list join  (0) 2016.11.24