巷でよく見るPythonインポート関連の記事では、相対パスに関する記載がある時に、カレントディレクトリとかその上のディレクトリくらいまではどうやって読み込めばいいかが書かれているが、それ以上になるとあまりない。困ったので書いておく。
Python searches for modules starting from the current directory, then built-in modules, directories in PYTHONPATH, and finally the default installation paths. Following practices like absolute imports ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する