fix missing dep in docs build (#557)

This commit is contained in:
alrex
2021-06-30 12:49:45 -07:00
committed by GitHub
parent de93b2ad28
commit 5b43a5993d
14 changed files with 221 additions and 203 deletions

View File

@ -35,11 +35,10 @@ _prefix = "opentelemetry-instrumentation-"
def main():
root_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
setuppy_tmpl = Template(
open(
os.path.join(root_path, _template_dir, _template_name), "r"
).read()
)
with open(
os.path.join(root_path, _template_dir, _template_name), "r"
) as template:
setuppy_tmpl = Template(template.read())
base_instrumentation_path = os.path.join(root_path, "instrumentation")
for instrumentation in os.listdir(base_instrumentation_path):