OpenCAE Hobby Lab
OpenCAE Hobby Lab

実行中のファイルの場所を取得する。

次のコードで取得できる。

import os

os.path.dirname(**file**)
hammamania.tech