python获取当前文件夹的文件夹名字

坑:

python获取当前文件夹的文件夹名字

解决方案

pwdOriginalVideoPath = gl.originalVideoPath
tmpOriginalVideoFatherPath  = os.path.abspath(os.path.dirname(pwdOriginalVideoPath) + os.path.sep + ".")
tmpOriginalVideoFileName = os.path.split(pwdOriginalVideoPath)[-1].split(".")[0]
tmpOutputPath = tmpOriginalVideoFatherPath+'\\'+tmpOriginalVideoFileName+'_Results'

 

posted @ 2019-08-11 10:35  bH1pJ  阅读(139)  评论(0编辑  收藏  举报