Code

Use abspath() from os.path, it's been there since 1.5.2.