python-fu in Windows does not import python modules from user “plug-ins” directory, Linux version does.
wants_import.pyimport_me.py GIMP version: 2.10.2
Operating System: Windows 7
Package: Windows Installer
Description of the bug
python-fu in Windows does not import python modules from user “plug-ins” directory, Linux version does. Please describe your issue with details.
Attached to this report is a trivial plug-in where wants_import.py imports import_me.py On Linux, if the user places both of these files in “~/.config/GIMP/2.10/plug-ins” the plugin will register as expected. However, On Windows, if the user places both files in "%USERPROFILE\AppData\Roaming\GIMP\2.10\plug-ins", the plugin will NOT register. No error message is sent to the main console, but if the text of wants_import.py is pasted directly into the python-fu console, an error message is printed that the module does not exist. If wants_import.py is placed in the Windows global gimp python directory %GIMP_BIN%"\32\lib\gimp\2.0\python", than the plugin will successfully register in Windows.
Add screenshot or other files if needed.
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- Write a python script that imports a module
- On Windows, place the script, and the module in the user plug-ins directory
- Start GIMP for Windows
…
Expected result: Plugin registers Actual result: Plugin fails to register
Additional information
Attempting to workaround by changing permissions of files has not yet worked.
If you have a backtrace for a crash or a warning, paste it here.