convert_swig: don't skip EXT_LIB paths for %import

When converting #include to %import statements, we should only skip
paths on TRICK_EXCLUDE and TRICK_SWIG_EXCLUDE, not TRICK_EXT_LIB_DIRS.

Refs #392
This commit is contained in:
Derek Bankieris 2017-04-04 09:25:35 -05:00
parent a749118ce7
commit 3affc2080e

View File

@ -257,7 +257,8 @@ sub process_file() {
# Get the canonical path (resolve ., .., and symbolic links) # Get the canonical path (resolve ., .., and symbolic links)
$file_name = abs_path($file_name) ; $file_name = abs_path($file_name) ;
foreach my $i ( @exclude_paths, @swig_exclude_paths, @ext_lib_paths ) { # Skip excluded paths
foreach my $i ( @exclude_paths, @swig_exclude_paths ) {
if ( $file_name =~ /^\Q$i/ ) { if ( $file_name =~ /^\Q$i/ ) {
next outer ; next outer ;
} }