Skip to content

如何更改pywebio的执行路径? #559

Answered by wang0618
iamcheyan asked this question in Q&A
Discussion options

You must be logged in to vote

当我执行pywebio*.py时,它的路径在apps文件夹下

估计是因为你在apps文件夹下执行的py文件

我如何让二者统一呢

有办法,不过不推荐。你如果想获取当前文件的路径,应该使用 os.path.dirname(file) 来获得

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@iamcheyan
Comment options

@wang0618
Comment options

@iamcheyan
Comment options

Answer selected by iamcheyan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants