Python tox找不到可执行文件';rmdir';

Python tox找不到可执行文件';rmdir';,python,tox,Python,Tox,我正在尝试创建一个tox.ini文件,该文件运行我的测试,清除以前的覆盖范围,并创建覆盖范围。我想通过rmdir/S/Q htmlcov删除先前的htmlcov文件夹 我得到的错误是:error:InvocationError for command找不到可执行文件“rmdir”,但是,该命令在命令行中工作 有人能解释一下原因吗 这是我的tox.ini文件: [tox] envlist = py35 [testenv] deps = pytest coverage comma

我正在尝试创建一个
tox.ini
文件,该文件运行我的测试,清除以前的覆盖范围,并创建覆盖范围。我想通过
rmdir/S/Q htmlcov
删除先前的
htmlcov
文件夹

我得到的错误是:
error:InvocationError for command找不到可执行文件“rmdir”
,但是,该命令在命令行中工作

有人能解释一下原因吗

这是我的
tox.ini
文件:

[tox]
envlist = py35


[testenv]
deps = pytest
       coverage

commands = pytest
           coverage erase
           rmdir /S /Q htmlcov
           coverage run --branch __main__.py test
           coverage report --omit='.tox/*,venv/*,tests/'
           coverage html --omit='.tox/*,venv/*,tests/'
在Windows上改为使用

cmd /c rmdir...
在Windows上改为使用

cmd /c rmdir...

尝试使用
/bin/rmdir
哪个操作系统?在Windows上,rmdir不是一个可执行文件,而是一个shell命令。@MichaelButscher Windows 10尝试使用
/bin/rmdir
哪个操作系统?在Windows上,rmdir不是一个可执行文件,而是一个shell命令。@MichaelButscher Windows 10
cmd/C如果存在htmlcov rmdir/S/Q htmlcov
cmd/C如果存在htmlcov rmdir/S/Q htmlcov