On Thu, Apr 18, 2013 at 6:34 PM, Rahul R <rahul8...@gmail.com> wrote:
> os.path.realpath(__filename__)
> that should do the trick.

As much as I understand the requirement, Kamalakar wants to
"recognize" the path, then he needs some equivalent of "which" command
(for binaries) or "locate" for non-binaries

realpath didn't work for me when I tried "ipython" on linux for either
of the above requirements.

-Mandar
_______________________________________________
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers

Reply via email to