File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
re_dev_tools/src/build_examples
re_types_builder/src/codegen/docs Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,11 @@ fn collect_snippets_recursively(
85
85
let snippet = snippet?;
86
86
let meta = snippet. metadata ( ) ?;
87
87
let path = snippet. path ( ) ;
88
+
89
+ if path. file_name ( ) . is_some_and ( |p| p == "__init__.py" ) {
90
+ continue ;
91
+ }
92
+
88
93
// Compare snippet outputs sometimes leaves orphaned rrd files.
89
94
if path. extension ( ) . is_some_and ( |p| p == "rrd" ) {
90
95
continue ;
Original file line number Diff line number Diff line change @@ -398,6 +398,10 @@ fn collect_snippets_recursively<'o>(
398
398
let meta = snippet. metadata ( ) ?;
399
399
let path = snippet. path ( ) ;
400
400
401
+ if path. file_name ( ) . is_some_and ( |name| name == "__init__.py" ) {
402
+ continue ;
403
+ }
404
+
401
405
let name = path. file_stem ( ) . unwrap ( ) . to_str ( ) . unwrap ( ) . to_owned ( ) ;
402
406
let name_qualified = path. strip_prefix ( snippet_root_path) ?. with_extension ( "" ) ;
403
407
let name_qualified = name_qualified. to_str ( ) . unwrap ( ) . replace ( '\\' , "/" ) ;
Original file line number Diff line number Diff line change @@ -126,6 +126,8 @@ def main() -> None:
126
126
dir = os .path .join (os .path .dirname (__file__ ), "all" )
127
127
for file in glob .glob (dir + "/**" , recursive = True ):
128
128
name = os .path .basename (file )
129
+ if name == "__init__.py" :
130
+ continue
129
131
name , extension = os .path .splitext (name )
130
132
if extension == ".cpp" and not args .no_cpp or extension == ".py" and not args .no_py or extension == ".rs" :
131
133
subdir = os .path .relpath (os .path .dirname (file ), dir )
You can’t perform that action at this time.
0 commit comments