FindBin is pretty awesome. Thanks for sharing. Do you know if there is a python module that emulates FindBin?
Hi Naveed.I would say you want to use os.path: http://docs.python.org/library/os.path.htmlAnd the function you want to look at is os.path.abspath() in something like this:os.path.abspath(os.path.dirname(sys.argv))Not sure if that is the best way to do it, but pretty straightforward.
Post a Comment