Если кто-то использует python и linux и ищет полный путь к файлу:
>>> path=os.popen("readlink -f file").read() >>> print path abs/path/to/file