I\'m building a simple helper script for work that will copy a couple of template files in our code base to the current directory. I don\'t, however, have the absolute path
An alternative which works for me:
this_dir = os.path.dirname(__file__) filename = os.path.realpath("{0}/relative/file.path".format(this_dir))