Ben Finney asked "What workflow requires you to know the filename of the module, within the module? "
So what I have is a project utility script in my scripts directory. I have a distinct file structure that holds my .py source, my test.py unit tests, and the file based data associated with the unit tests. Each test.py is in a dedicated directory. My utility script can be easily tweaked to do a variety of useful things, one of which is leave the interactive session with a variable that points to a testing directory whose unit test failed. It relies on each test.py having a same named function that knows its directory. It sounds like there is a more pythonic way to do what I am doing, but also that I am not completely out to lunch. Sounds about par for my python code at this point. As my code used to be almost exclusively out to lunch, I think I am improving (thanks guys!). -- https://mail.python.org/mailman/listinfo/python-list