<p></p>
<p>I don't know how IDLE made it work, but you have one file in <em>/home/pi/</em> (<em>ifsample.py</em>) and the other in <em>/home/pi/Desktop/</em> (<em>test.py</em>); that's unlikely to give good results.  It probably would work if you started <em>test.py</em> from directory <em>/home/pi</em>, which might be what IDLE did, but Geany defaults to running in the file's own directory, which is <em>/home/pi/Desktop</em> here.  Python has no way to know it should look into <em>/home/pi</em>, as it's not a default search path and you didn't explicitly tell it to.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/2631#issuecomment-713781388">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ3L4ABHLLU7QOJXAGTSL4SSTANCNFSM4SZZQ6DA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJZINZ6GQBRK3ZCIX5DSL4SSTA5CNFSM4SZZQ6DKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFKFXBDA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2631#issuecomment-713781388",
"url": "https://github.com/geany/geany/issues/2631#issuecomment-713781388",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>