Skip to content

Commit 54d076b

Browse files
committed
update paths in codegen
1 parent f642b58 commit 54d076b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: codegen/__init__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ def perform_codegen():
9090
# ---------------------------------
9191
# (relative to project root)
9292
abs_file_path = opath.realpath(__file__)
93-
packages_py = opath.dirname(opath.dirname(opath.dirname(abs_file_path)))
94-
outdir = opath.join(packages_py, "plotly", "plotly")
93+
project_root = opath.dirname(opath.dirname(abs_file_path))
94+
outdir = opath.join(project_root, "plotly")
9595

9696
# Delete prior codegen output
9797
# ---------------------------
@@ -113,7 +113,7 @@ def perform_codegen():
113113
# Load plotly schema
114114
# ------------------
115115
plot_schema_path = opath.join(
116-
packages_py, "plotly", "codegen", "resources", "plot-schema.json"
116+
project_root, "codegen", "resources", "plot-schema.json"
117117
)
118118

119119
with open(plot_schema_path, "r") as f:

0 commit comments

Comments
 (0)