This would be better as:
```python
sh("cd {dir}; make html quiet={quiet}".format(
    dir=path, quiet="false" if verbose else "true")
)
```