diff options
author | spreis <spreis@yandex-team.com> | 2023-10-13 06:41:33 +0300 |
---|---|---|
committer | spreis <spreis@yandex-team.com> | 2023-10-13 07:08:24 +0300 |
commit | 94d77db087cf83003ca0c6f276dbb827099688ad (patch) | |
tree | 1adeb0e4918307588f1fad4898b7d3e2deca69dc /build/plugins | |
parent | 7bf454679ed7688910a47b369875c0ebdd77f53c (diff) | |
download | ydb-94d77db087cf83003ca0c6f276dbb827099688ad.tar.gz |
support dash in Python version of PROTO_LIBRARY
Diffstat (limited to 'build/plugins')
-rw-r--r-- | build/plugins/pybuild.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/build/plugins/pybuild.py b/build/plugins/pybuild.py index b91fd61a17..1823b82387 100644 --- a/build/plugins/pybuild.py +++ b/build/plugins/pybuild.py @@ -373,6 +373,8 @@ def onpy_srcs(unit, *args): mod_root_path = root_rel_path[: -(len(path) + 1)] py_namespaces.setdefault(mod_root_path, set()).add(ns if ns else '.') mod = ns + mod_name + if in_proto_library: + mod = mod.replace('-', '_') if main_mod: py_main(unit, mod + ":main") |