Skip to content

Commit d10f162

Browse files
robertgoss-workmartinweismann
authored andcommitted
Do not add module prefix in same namespace
1 parent 2c7355b commit d10f162

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Source/buildbindingpython.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,11 @@ func writeMethod(method ComponentDefinitionMethod, w LanguageWriter, NameSpace s
828828
subNameSpace, paramClassName, _ := decomposeParamClassName(param.ParamClass)
829829
if len(subNameSpace) > 0 {
830830
theWrapperReference = theWrapperReference + "._" + subNameSpace + "Wrapper"
831-
subNameSpace = subNameSpace + "."
831+
if subNameSpace != NameSpace {
832+
subNameSpace = subNameSpace + ".";
833+
} else {
834+
subNameSpace = "";
835+
}
832836
}
833837
postCallLines = append(postCallLines, fmt.Sprintf("if %sHandle:", param.ParamName))
834838
postCallLines = append(postCallLines,

0 commit comments

Comments
 (0)