i was working with geany for studying python.today i was studying about importing modules.and i created two python files one having a function with if/else example and other file importing my first file to it.then i tried to run my file but shown no module named as my first file.then i opened these same files in the python IDLE and runned the samething and it worked. ![Screenshot from 2020-10-21 14-35-38](https://user-images.githubusercontent.com/72963932/96727534-0dfdbc00-13ab-11...) ![Screenshot from 2020-10-21 14-36-07](https://user-images.githubusercontent.com/72963932/96727564-17872400-13ab-11...) ![Screenshot from 2020-10-21 14-36-31](https://user-images.githubusercontent.com/72963932/96727580-1d7d0500-13ab-11...)
I don't know how IDLE made it work, but you have one file in */home/pi/* (*ifsample.py*) and the other in */home/pi/Desktop/* (*test.py*); that's unlikely to give good results. It probably would work if you started *test.py* from directory */home/pi*, which might be what IDLE did, but Geany defaults to running in the file's own directory, which is */home/pi/Desktop* here. Python has no way to know it should look into */home/pi*, as it's not a default search path and you didn't explicitly tell it to.
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.
@elextr sorry for asking this question here, I dont want to open a thread for this question.
I know that geany 1.37 is releasing tomorrow, I am currently running gtk2 enabled geany 1.36. I understand that from 1.37 gtk3 is default.
If I installed this new version of 1.37 with gtk3
a) will it upgrade 1.36 gtk2 to 1.37gtk3 b) it will simply install another version of 1.37 gtk3 causing simultaneous existence of 1.36 and 1.37?
@fightthepower don't hijack existing issues to ask irrelevant questions, use the mailing list.
github-comments@lists.geany.org