Am I the only one who finds this function super useful? def _code_file() : return os.path.abspath(inspect.getsourcefile(_code_file))
I've got one in every script. It's the only one I have to copy around. For my workflow ... so handy. I've got os.path.dirname aliased to dn, so its dn(_code_file()) that I find myself reaching for fairly often... -- https://mail.python.org/mailman/listinfo/python-list