import sys # setting path sys.path.append('../parentdirectory') # importing from parentdirectory.geeks import geek_method # using geek_method()