-
我用flask和pywebio开发一些小程序 flask_app.py flask_app.py里记录了每个pywebio小程序的路由信息 |
Beta Was this translation helpful? Give feedback.
Answered by
wang0618
Mar 20, 2023
Replies: 1 comment 3 replies
-
估计是因为你在apps文件夹下执行的py文件
有办法,不过不推荐。你如果想获取当前文件的路径,应该使用 os.path.dirname(file) 来获得 |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
iamcheyan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
估计是因为你在apps文件夹下执行的py文件
有办法,不过不推荐。你如果想获取当前文件的路径,应该使用 os.path.dirname(file) 来获得