Skip to content

Fix package

Benjamin Bertrand requested to merge fix_package into master

Fix python package + relative imports:

  1. packages=["petenv"] won't include subdirectories. Subdir can be added manually to the list or a better option is to use the find_packages function.

  2. "from plc import PLC" will fail if you are not in the proper directory. You should use either:

  • from .plc import PLC

or

  • from petenv.gui.plc import PLC

Merge request reports