2017년 8월 21일 월요일

python library path 설정

Note that the python path is not the same as the system $PATH.

(1) To list the python path,
     import sys
     print(sys.path)

(2) To insert a path,
    sys.path.insert(0, '{PATH TO INSERT}')

    This enables one to import library from other folder.

댓글 없음:

댓글 쓰기