os.path.dirname(os.getcwd())
显示如下:
/www/wwwpython/MxShop
运行:
os.getcwd()
/www/wwwpython/MxShop/db_tools