Skip to content

Commit

Permalink
chore: remove __path__ from bindings (#76)
Browse files Browse the repository at this point in the history
* chore: remove __path__ from bindings

* chore: missed a spot
  • Loading branch information
vishwa2710 authored Feb 13, 2024
1 parent 0768860 commit 0775001
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions bindings/python/src/OpenSpaceToolkitIOPy.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ PYBIND11_MODULE(OpenSpaceToolkitIOPy, m)
// Add optional docstring for package OpenSpaceToolkitIOPy
m.doc() = "Addressing, networking, database connectors for OpenSpaceToolkit.";

// Add __path__ attribute to python package
m.attr("__path__") = "ostk.io";

// Change attribute __name__ to make OpenSpaceToolkitIOPy invisible in import path
m.attr("__name__") = "ostk.io";

Expand Down
2 changes: 0 additions & 2 deletions bindings/python/src/OpenSpaceToolkitIOPy/IP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ inline void OpenSpaceToolkitIOPy_IP(pybind11::module& aModule)
// Create "ip" python submodule
auto ip = aModule.def_submodule("ip");

// Add __path__ attribute for "ip" submodule
ip.attr("__path__") = "ostk.io.ip";

// Add custom types to python "ip" submodule
OpenSpaceToolkitIOPy_IP_TCP(ip);
Expand Down
2 changes: 0 additions & 2 deletions bindings/python/src/OpenSpaceToolkitIOPy/IP/TCP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ inline void OpenSpaceToolkitIOPy_IP_TCP(pybind11::module& aModule)
// Create "tcp" python submodule
auto tcp = aModule.def_submodule("tcp");

// Add __path__ attribute for "tcp" submodule
tcp.attr("__path__") = "ostk.io.ip.tcp";

// Add custom types to python "tcp" submodule
OpenSpaceToolkitIOPy_IP_TCP_HTTP(tcp);
Expand Down
2 changes: 0 additions & 2 deletions bindings/python/src/OpenSpaceToolkitIOPy/IP/TCP/HTTP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ inline void OpenSpaceToolkitIOPy_IP_TCP_HTTP(pybind11::module& aModule)
// Create "http" python submodule
auto http = aModule.def_submodule("http");

// Add __path__ attribute for "http" submodule
http.attr("__path__") = "ostk.io.ip.tcp.http";

// Add custom types to python "http" submodule
OpenSpaceToolkitIOPy_IP_TCP_HTTP_Request(http);
Expand Down

0 comments on commit 0775001

Please sign in to comment.