path = os.path.dirname(os.path.dirname(__file__)) would be clearer I think