[Pythonmac-SIG] Popen and py2app
Adam Morris
amorris at mistermorris.com
Tue Dec 28 07:57:08 CET 2010
On Dec 28, 2010, at 12:24 PM, Aahz <aahz at pythoncraft.com> wrote:
> Nope. If you're doing that, just use os.path.exists() or isfile().
> Faster and safer.
I was hoping that I could detect it no matter where it was so advanced users could do symlinks or move it to their own folders or whatever which made me think of bash's which. You're right though, if I'm relegated to typing out the full path might as well use os.path.exists and allow the user to modify the path it looks in with a preference.
More information about the Pythonmac-SIG
mailing list