2012年3月15日木曜日

Pythonでスクリプトのパスを取得する

import os
current_path=os.path.dirname(os.path.abspath(__file__))+'/'

で取得可能

0 件のコメント:

コメントを投稿