('Where python script is running',)
pywhereisrunning的Python项目详细描述
运行中的Pywhereisrunning
以查看脚本运行时python脚本的运行位置。在
基本上,它使用SIGUSR1向python脚本发送信号,脚本获取信号并 使用框架显示脚本运行的位置。在
安装
pip install pywhereisrunning
使用
只是
^{pr2}$使功能可用。在
运行脚本时,请使用
pywhereisrunning $(filename)
显示脚本的运行位置。在
命令后,将显示
File "src/preprocess.py", line 50, in <module> click_df,train_user,test_user=merge_files() File "src/preprocess.py", line 36, in merge_files click_df=click_df.fillna(-1) File "/home/sky/.conda/envs/py3.6/lib/python3.6/site-packages/pandas/core/frame.py", line 4153, in fillna downcast=downcast, File "/home/sky/.conda/envs/py3.6/lib/python3.6/site-packages/pandas/core/generic.py", line 6237, in fillna value=value, limit=limit, inplace=inplace, downcast=downcast
待办事项
[x]pywhereisrunning + $(filename)
- 项目
标签: