opentap / OpenTap.Python

Python integration for OpenTAP
Apache License 2.0
22 stars 7 forks source link

Nested folders not supported for plugins #95

Open ivandiep-ks opened 1 year ago

ivandiep-ks commented 1 year ago

Currently the Python Plugin's default search path is .../OpenTAP/Packages and will search for python modules within this directory. The issue is that it will not detect additional python plugins nested within these directories.

Example: within \OpenTAP\Packages\MyPythonPlugin

# will be detected
\example1.py

# won't be detected
\teststeps\step1.py
\teststeps\step2.py
etc.

\instruments\instrument1.py
\instruments\insturment2.py
etc.

\other_modules\...

A current workaround to this would be to add \OpenTAP\Packages\MyPythonPlugin to the "Plugin Module Search Path", but this becomes a problem when more nesting is introduced.