File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ def perform_codegen():
83
83
# ---------------------------------
84
84
# (relative to project root)
85
85
abs_file_path = opath .realpath (__file__ )
86
- project_root = opath .dirname (opath .dirname (opath .dirname (abs_file_path )));
86
+ project_root = opath .dirname (opath .dirname (opath .dirname (abs_file_path )))
87
87
88
88
outdir = opath .join (project_root , 'plotly-package' , 'plotly' )
89
89
@@ -106,7 +106,15 @@ def perform_codegen():
106
106
107
107
# Load plotly schema
108
108
# ------------------
109
- with open ('plotly-package/codegen/resources/plot-schema.json' , 'r' ) as f :
109
+ plot_schema_path = opath .join (
110
+ project_root ,
111
+ 'plotly-package' ,
112
+ 'codegen' ,
113
+ 'resources' ,
114
+ 'plot-schema.json' ,
115
+ )
116
+
117
+ with open (plot_schema_path , 'r' ) as f :
110
118
plotly_schema = json .load (f )
111
119
112
120
# Preprocess Schema
You can’t perform that action at this time.
0 commit comments