I’ve searched and this seems to be a simple question without a simple answer. I have the file a/b/c.py which would be called with python -m a.b.c. I would like to obtain the value a.b.c in the module level. So when I receive the -h option, I display the USAGE without the need to actually write down the actual value
Tag: python-2.6
Why does sys.exit() not exit when called inside a thread in Python?
I am confused as to why the following code snippet would not exit when called in the thread, but would exit when called in the main thread. The docs for sys.exit() state that the call should exit from Python. I can see from the output of this program that “post thread exit” is never printed, but the main thread just