IDLE will have the `sample` module already loaded and as it passes its `sys.modules` to the subprocess that runs `test.py` it is found.
You will probably find that it will not work outside Idle anywhere, eg at the command line, if `test.py` is run from `Desktop`. Thats not a Geany thing, its how Python works. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/2631#issuecomment-713891023
