Bag of ML Words

ML = Machine Learning, Music Love, and Miscellaneous things in daily Livings

自分のファイルのパスを取得(python)

current_dir_path = os.path.abspath(os.path.dirname(__file__))

 

これで、当該実行ファイルの位置を取得できるので

libraryのツリー内の好きなファイルを見に行けるぞ