python获取当前脚本所在目录

import os

cur_path = os.path.dirname(__file__)

posted @ 2010-06-01 11:59  老保  Views(454)  Comments(0)    收藏  举报