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'