File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -558,21 +558,22 @@ <h2 id="problems-title"></h2>
558558 const problems = [ ] ;
559559
560560 if ( platform === 'vicutils' ) {
561- // For vicutils, treat .py files directly (not directories)
561+ // For vicutils, look for generated .html files
562562 for ( const item of items ) {
563- if ( item . type === 'file' && item . name . endsWith ( '.py' ) && item . name !== '__init__.py' ) {
563+ if ( item . type === 'file' && item . name . endsWith ( '.html' ) ) {
564+ const baseName = item . name . replace ( '.html' , '' ) ;
564565 problems . push ( {
565- name : item . name ,
566- displayName : item . name . replace ( '.py' , '' ) . replace ( / _ / g, ' ' ) ,
567- type : 'util-script ' ,
566+ name : baseName ,
567+ displayName : baseName . replace ( / _ / g, ' ' ) ,
568+ type : 'html ' ,
568569 hasPage : true ,
569- hasHtml : false ,
570+ hasHtml : true ,
570571 hasPng : false ,
571- hasPy : true ,
572- mainPyFile : item ,
573- htmlFiles : [ ] ,
572+ hasPy : false ,
573+ mainPyFile : null ,
574+ htmlFiles : [ item ] ,
574575 pngFiles : [ ] ,
575- pyFiles : [ item ]
576+ pyFiles : [ ]
576577 } ) ;
577578 }
578579 }
You can’t perform that action at this time.
0 commit comments