Write the plotly/graph_objs/graph_objs.py file This module just imports everything from the plotly.graph_objs package. We write it for backward compatibility with legacy imports like: from plotly.graph_objs import graph_objs Parameters ---------- outdir : str
(outdir)
| 173 | |
| 174 | |
| 175 | def write_graph_objs_graph_objs(outdir): |
| 176 | """ |
| 177 | Write the plotly/graph_objs/graph_objs.py file |
| 178 | |
| 179 | This module just imports everything from the plotly.graph_objs package. |
| 180 | We write it for backward compatibility with legacy imports like: |
| 181 | |
| 182 | from plotly.graph_objs import graph_objs |
| 183 | |
| 184 | Parameters |
| 185 | ---------- |
| 186 | outdir : str |
| 187 | Root outdir in which the graph_objs package should reside |
| 188 | |
| 189 | Returns |
| 190 | ------- |
| 191 | None |
| 192 | """ |
| 193 | filepath = opath.join(outdir, "graph_objs", "graph_objs.py") |
| 194 | with open(filepath, "wt") as f: |
| 195 | f.write( |
| 196 | """\ |
| 197 | from plotly.graph_objs import * |
| 198 | """ |
| 199 | ) |
no test coverage detected