Skip to content

Commit

Permalink
Revert "Import examples direct."
Browse files Browse the repository at this point in the history
This reverts commit db983b0.
  • Loading branch information
janiversen committed Nov 6, 2024
1 parent 8001e1a commit d0cc7cc
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion examples/client_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@


try:
import helper # type: ignore[import-not-found]
from examples import helper
except ImportError:
print("*** ERROR --> THIS EXAMPLE needs the example directory, please see \n\
https://pymodbus.readthedocs.io/en/latest/source/examples.html\n\
Expand Down
2 changes: 1 addition & 1 deletion examples/client_async_calls.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@


try:
import client_async # type: ignore[import-not-found]
from examples import client_async
except ImportError:
print("*** ERROR --> THIS EXAMPLE needs the example directory, please see \n\
https://pymodbus.readthedocs.io/en/latest/source/examples.html\n\
Expand Down
2 changes: 1 addition & 1 deletion examples/client_calls.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@


try:
import client_sync # type: ignore[import-not-found]
from examples import client_sync
except ImportError:
print("*** ERROR --> THIS EXAMPLE needs the example directory, please see \n\
https://pymodbus.readthedocs.io/en/latest/source/examples.html\n\
Expand Down
2 changes: 1 addition & 1 deletion examples/client_payload.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


try:
import client_async # type: ignore[import-not-found]
from examples import client_async
except ImportError:
print("*** ERROR --> THIS EXAMPLE needs the example directory, please see \n\
https://pymodbus.readthedocs.io/en/latest/source/examples.html\n\
Expand Down
2 changes: 1 addition & 1 deletion examples/client_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@


try:
import helper # type: ignore[import-not-found]
from examples import helper
except ImportError:
print("*** ERROR --> THIS EXAMPLE needs the example directory, please see \n\
https://pymodbus.readthedocs.io/en/latest/source/examples.html\n\
Expand Down
2 changes: 1 addition & 1 deletion examples/modbus_forwarder.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@


try:
import helper # type: ignore[import-not-found]
from examples import helper
except ImportError:
print("*** ERROR --> THIS EXAMPLE needs the example directory, please see \n\
https://pymodbus.readthedocs.io/en/latest/source/examples.html\n\
Expand Down
Empty file removed examples/py.typed
Empty file.
2 changes: 1 addition & 1 deletion examples/server_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@


try:
import helper # type: ignore[import-not-found]
from examples import helper
except ImportError:
print("*** ERROR --> THIS EXAMPLE needs the example directory, please see \n\
https://pymodbus.readthedocs.io/en/latest/source/examples.html\n\
Expand Down
2 changes: 1 addition & 1 deletion examples/server_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


try:
import server_async # type: ignore[import-not-found]
from examples import server_async
except ImportError:
print("*** ERROR --> THIS EXAMPLE needs the example directory, please see \n\
https://pymodbus.readthedocs.io/en/latest/source/examples.html\n\
Expand Down
2 changes: 1 addition & 1 deletion examples/server_payload.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


try:
import server_async # type: ignore[import-not-found]
from examples import server_async
except ImportError:
print("*** ERROR --> THIS EXAMPLE needs the example directory, please see \n\
https://pymodbus.readthedocs.io/en/latest/source/examples.html\n\
Expand Down
3 changes: 1 addition & 2 deletions examples/server_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@


try:
import helper # type: ignore[import-not-found]
import server_async # type: ignore[import-not-found]
from examples import helper, server_async
except ImportError:
print("*** ERROR --> THIS EXAMPLE needs the example directory, please see \n\
https://pymodbus.readthedocs.io/en/latest/source/examples.html\n\
Expand Down
2 changes: 1 addition & 1 deletion examples/server_updating.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@


try:
import server_async # type: ignore[import-not-found]
from examples import server_async
except ImportError:
print("*** ERROR --> THIS EXAMPLE needs the example directory, please see \n\
https://pymodbus.readthedocs.io/en/latest/source/examples.html\n\
Expand Down

0 comments on commit d0cc7cc

Please sign in to comment.