import os dir = os.path.split(os.path.realpath(__file__))[0]