module search path

    [Python] Module Search Path and sys.path

    1. Module Search Path Python 에서 module을 찾는 경로 (Module Search Path)는 다음의 순서별로 우선권을 가짐. home directory of the program (main script file이 있는 위치 or python shell이 수행된 cwd) PYTHONPATH 환경변수 (environment variable)에 지정된 directory 및 zip파일. Python Standard Library directories .pth (path config file)에 기재된 path Third-party 라이브러리들의 site-packages 디렉토리. 참고로 3번, 4번과 5번의 경우는 개발자가 주로 설정하진 않는 편. .pth파일을 사용하는 경우도 있긴..