1652 add trickified to default sie generation (#1680)

* Add trickeifed classes.resource to sie generation after cp.

* Go through all trickified classes.resource files if available and don't die on any if not found.
This commit is contained in:
Hong Chen 2024-03-27 15:29:01 -05:00 committed by GitHub
parent 209984255e
commit 72e82e1566
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,12 +24,12 @@ close($classes_resource);
# Add trickified classes.resource if available
foreach my $path ( @trick_python_paths ) {
my $trickified_dir = dirname($path);
open(my $classes_resource, "<", "$trickified_dir/build/classes.resource")
or die "cannot open $trickified_dir/build/classes.resource";
while(my $line = <$classes_resource>) {
print $S_sie_resource $line;
if (open(my $classes_resource, "<", "$trickified_dir/build/classes.resource")) {
while(my $line = <$classes_resource>) {
print $S_sie_resource $line;
}
close($classes_resource);
}
close($classes_resource);
}
open(my $top_level_objects_resource, "<", "build/top_level_objects.resource")