Python获取程序运行目录和脚本目录

2014-11-24 13:15:13 · 作者: · 浏览: 2

Python获取程序运行目录和脚本目录


在脚本所在目录运行: python test.py


在其他目录运行:python hadoop/test.py