import os print os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir))