| Index: tools/telemetry/build/update_docs.py
|
| diff --git a/tools/telemetry/build/update_docs.py b/tools/telemetry/build/update_docs.py
|
| index 38d0c3c1782cc4de38957afec4f65ef78c13bfab..cae96e631264d38741ff890b3f9fb660b8d7321a 100644
|
| --- a/tools/telemetry/build/update_docs.py
|
| +++ b/tools/telemetry/build/update_docs.py
|
| @@ -32,6 +32,9 @@ def RemoveAllStalePycFiles():
|
| py_path = os.path.splitext(pyc_path)[0] + '.py'
|
| if not os.path.exists(py_path):
|
| os.remove(pyc_path)
|
| + pyc_dir = os.path.dirname(pyc_path)
|
| + if not os.listdir(pyc_dir):
|
| + os.removedirs(pyc_dir)
|
|
|
| def GenerateHTMLForModule(module):
|
| html = pydoc.html.page(pydoc.describe(module),
|
|
|