I have 5 python scripts in the following folders :
- .\Signal_Slot_Example\main.py
- .\Signal_Slot_Example\ProgressDialog\init.py
- .\Signal_Slot_Example\ProgressDialog\Progress.py
- .\Signal_Slot_Example\SliderDialog\init.py
- .\Signal_Slot_Example\SliderDialog\Slider.py
Main.py when run calls the other 2 scripts and creates a simple slid that interacts with a progress bar and when I run it in Idle it all works fine.
When I run it in the QGIS python console I get :
Traceback (most recent call last):
File "C:\OSGEO4~1\apps\Python37\lib\code.py", line 90, in runcode
exec(code, self.locals)
File "<input>", line 1, in <module>
File "<string>", line 1, in <module>
File "C:/OSGEO4~1/apps/qgis-ltr/./python\qgis\utils.py", line 672, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'SliderDialog'
Why won't it work in QGIS but runs fine in Idle ?
All the example code I have run in QGIS python console and in idle worked the same the only difference here is that I am calling classes from other .py scripts.