-
Notifications
You must be signed in to change notification settings - Fork 114
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Category
Other
Scope
Quality of Life
Problem
Knowing where a Shiny application is running is quite difficult.
Some situations, we know where the app.py file is. Others, we do not.
It would be nice to have access to the "application directory" for things like bookmarking or finding files relatively.
Solution
I'd like for shiny.app_dir() to a function that returns a directory.
This directory is defined as the first value of:
- The value of
SHINY_APP_DIRsys environ - The parent directory of the input file being processed
- The current working directory.
Todo:
-
App.app_dirshould be initialized to the value ofapp_dir(). - Add the "show notification and update clipboard" method to
session.bookmark
Alternatives (Optional)
- Just use the current working directory.
This fails for multiple app applications.
Example (Optional)
Impact (Optional)
No response
Contribution? (Optional)
None
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request