1A = os.path.join(os.path.dirname(__file__), '..')
2# A is the parent directory of the directory where program resides.
3
4B = os.path.dirname(os.path.realpath(__file__))
5# B is the canonicalised (?) directory where the program resides.
6
7C = os.path.abspath(os.path.dirname(__file__))
8# C is the absolute path of the directory where the program resides.