diff --git a/scripts/sip_include.sh b/scripts/sip_include.sh index c947eb9b298..30024df177f 100755 --- a/scripts/sip_include.sh +++ b/scripts/sip_include.sh @@ -65,6 +65,11 @@ for module in "${modules[@]}"; do if [[ ! -z $if_cond ]]; then echo "$if_cond" >> $file fi + if [[ "$sip" == [0-9]* ]]; then + # unfortunately SIP parser does not accept relative paths starting with a number + # so "%Include 3d/xxxx.sip" is a syntax error but everything works with "%Include ./3d/xxxx.sip" + sip="./$sip" + fi echo "%Include $sip" >> $file if [[ ! -z $if_cond ]]; then echo "%End" >> $file