for example I have a script that needs to put it's parent directory on the python path, currently I'm using the following
sys.path += [os.path.dirname(os.path.dirname(os.path.realpath(__file__)))]
this seems a touch ridiculous, surely there is a simpler way?