python-eel/Eel

Passing File between Python and HTML frontend in single distributable binary

Open

#434 建立於 2021年1月22日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)Python (570 fork)batch import
help wanted

倉庫指標

Star
 (5,980 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Hello, First, thanks for providing this library! Here is what I do: I'm creating a file in the python code inside the web folder. This file is then used in the gui by a function of a JavaScript library. I just pass the path to the file to that function. My issue: This works all fine as long as I don't package the application with PyInstaller into one distributable binary (as you've kindly described in your readme). If I do that, then the frontend cant access the file. I guess the whole frontend runs in some kind of virtual environment with an own file system. The python code writes the file into the normal file system though. My question: Is there a way to access that virtual env from inside python? Or is there another way I should achieve this?

貢獻者指南