-
-
Notifications
You must be signed in to change notification settings - Fork 13
Description
What is the problem or limitation you are having?
The stub app currently sets a PYTHONPATH that includes the app and app_packages paths, plus the stdlib.
These paths are all inside the application bundle, which is a code-signed location.
If a user wants to add additional files to the PYTHONPATH (e.g., if you were building a "Jupyter Notebook" app, and wanted the user to be able to access user-installed packages), you can't install that code into app or app_packages.
Describe the solution you'd like
The stub app should include an Application Support folder as part of the standard app path.
Following the guidance of this document, this should be something like:
~/Library/Application Support/com.example.myapp/user_packages
Describe alternatives you've considered
Don't allow user-installed packages.
Additional context
Looking in an actual application support folder, there's some variation between the use of Formal Name and bundle as the app-specific identifier - i.e., ~/Library/Application Support/My App/user_packages. Using the bundle ID seem least likely to cause collisions.
Once this feature lands, the app template will need to be updated with a new binary.