Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 320 Bytes

File metadata and controls

8 lines (7 loc) · 320 Bytes

Python

How python import packages

  • Ref this article
  • This is not whereis python
  • Python search modules in (populated current path + $PYTHONPATH + sys.path)
  • Use sys module to check sys.path
  • Use imp module to manipulate import logic