Skip to content

Commit 2e6e8c4

Browse files
mjohanse-emrMichael Johansen
andauthored
Redirect old imports of ni.protobuf.types to their new location (#1218)
* Redirect old imports of ni.protobuf.types Signed-off-by: Michael Johansen <michael.johansen@ni.com> * Add a comment to explain redirect. Signed-off-by: Michael Johansen <michael.johansen@ni.com> --------- Signed-off-by: Michael Johansen <michael.johansen@ni.com> Co-authored-by: Michael Johansen <michael.johansen@ni.com>
1 parent 6ed06d6 commit 2e6e8c4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • packages/service/ni_measurement_plugin_sdk_service/_internal
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
11
"""Internal modules and classes for Measurement Framework."""
2+
3+
import sys
4+
5+
import ni.protobuf
6+
7+
8+
# Redirect old imports of the stubs that used to be defined here to their new location.
9+
sys.modules["ni_measurement_plugin_sdk_service._internal.stubs.ni.protobuf"] = ni.protobuf

0 commit comments

Comments
 (0)