python
2021. 8. 2. 17:15
https://stackoverflow.com/questions/3056048/filename-and-line-number-of-python-script
filename and line number of Python script
How can I get the file name and line number in a Python script? Exactly the file information we get from an exception traceback. In this case without raising an exception.
stackoverflow.com
'python' 카테고리의 다른 글
(NG, not good/not working)python subprocess kill on exit (0) | 2021.08.09 |
---|---|
PyQt ProgressBar (0) | 2021.08.02 |
python UDP socket timeout examples (0) | 2021.08.02 |
PyQt5 -- QThread 사용하기 & thread 간 통신 (0) | 2021.08.02 |
PyQt5 QTableWidget 자료 (0) | 2021.08.02 |