Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
flow3r firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flow3r
flow3r firmware
Merge requests
!180
add info about app_ctx.bundle_path to programming.rst
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
add info about app_ctx.bundle_path to programming.rst
teal/flow3r-firmware:add-app-ctx-info
into
main
Overview
0
Commits
1
Pipelines
2
Changes
1
Merged
Teal Starsong
requested to merge
teal/flow3r-firmware:add-app-ctx-info
into
main
1 year ago
Overview
0
Commits
1
Pipelines
2
Changes
1
Expand
Add info about the newly available app_ctx.bundle_path in v1.1.1
0
0
Merge request reports
Compare
main
version 1
7734107a
1 year ago
main (base)
and
version 1
latest version
050ab5f5
1 commit,
1 year ago
version 1
7734107a
1 commit,
1 year ago
1 file
+
5
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
docs/badge/programming.rst
+
5
−
0
Options
@@ -571,6 +571,11 @@ Here is our previous code changed to use `Application` for the base of its main
# Continue to make runnable via mpremote run.
st3m.run.run_view(MyDemo(ApplicationContext()))
Using `Application` also gives you access to the `ApplicationContext`, which for example
gives you a way to find out the base path of your app, in `app_ctx.bundle_path`. For a
sample app using this, see `schneider's nyan-cat fork
<https://git.flow3r.garden/chubbson/nyan-cat/-/tree/schneider/bundle-path>`_.
To add the application to the menu we are missing one more thing: a `flow3r.toml`
file which describes the application so flow3r knows where to put it in the menu system.
Together with the Python code this file forms a so called bundle
Loading