Support dot PY_NAMESPACE for python3.
@@ -217,6 +217,10 @@ def onpy3_srcs(unit, *args):
if unit.get('MODULE_TYPE') == 'PROGRAM':
py3_program(unit)
+ py_namespace_value = unit.get('PY_NAMESPACE_VALUE')
+ if py_namespace_value == ".":
+ ns = ""
+ else:
ns = (unit.get('PY_NAMESPACE_VALUE') or unit.path()[3:].replace('/', '.')) + '.'
cython_directives = []
