Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a702baf

Browse files
committed
Fix codegen paths
1 parent a5ce761 commit a702baf

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

packages/python/plotly/codegen/__init__.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,8 @@ def perform_codegen():
8383
# ---------------------------------
8484
# (relative to project root)
8585
abs_file_path = opath.realpath(__file__)
86-
project_root = opath.dirname(opath.dirname(opath.dirname(abs_file_path)))
87-
88-
outdir = opath.join(project_root, 'plotly-package', 'plotly')
86+
packages_py = opath.dirname(opath.dirname(opath.dirname(abs_file_path)))
87+
outdir = opath.join(packages_py, 'plotly', 'plotly')
8988

9089
# Delete prior codegen output
9190
# ---------------------------
@@ -107,8 +106,8 @@ def perform_codegen():
107106
# Load plotly schema
108107
# ------------------
109108
plot_schema_path = opath.join(
110-
project_root,
111-
'plotly-package',
109+
packages_py,
110+
'plotly',
112111
'codegen',
113112
'resources',
114113
'plot-schema.json',

0 commit comments

Comments
 (0)