Are FLET_APP_STORAGE_DATA and FLET_APP_STORAGE_TEMP ignored on Windows #5654
-
QuestionHello, I have tried to change this directory using FLET_APP_STORAGE_DATA and FLET_APP_STORAGE_TEMP env vars, but they don't seem to have any affect. My issue is, the creation of new folders in the user's documents folder is blocked by Windows Protected Folder Access which I cannot create an exception for. Is there a way around this issue? Code sampleNo response Error messageNo response ------------------------------------------------------
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
When you build a standalone Flet app with flet build windows, it tries to create a default storage folder in the user’s Documents directory |
Beta Was this translation helpful? Give feedback.
When you build a standalone Flet app with flet build windows, it tries to create a default storage folder in the user’s Documents directory
(Documents\flet\<appname>)
. Flet uses this folder to store app data like local storage, cache, and temporary files. Right now, environment variables likeFLET_APP_STORAGE_DATA
andFLET_APP_STORAGE_TEMP
only work when you run the app as a Python script, they don’t have any effect on the packaged Windows EXE.