Replies: 1 comment 2 replies
-
The same thing happens to me. The statement trb_dir = os.getenv('FLET_ASSETS_DIR') returns None if I compile the application on Linux; if I don't compile, it returns the correct path. |
Beta Was this translation helpful? Give feedback.
2 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
Question
I am building an Android application using Flet and need to include specific files (e.g., Excel files, jsons) within the app's package to ensure they are accessible after the build. The code in my app relies on these files, but they are not used directly by any Flet-specific functions. After building the app, I noticed that the FLET_ASSETS_DIR environment variable is no longer available.
How can I properly include and access these files post-build, ensuring that they are bundled with the application? Is there a recommended approach for handling files that need to be accessed by Python code after the Android app is compiled?
Code sample
No response
Error message
No response
------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions