[Python] スクリプト実行ディレクトリを絶対パスで取得する - Qiita

ずばり、以下で取得可能。os.path.dirname(os.path.abspath(__file__))動作確認用のテストコードimport osprint("__file__ : %r…