Skip to content

Include a PYTHONPATH extension allowing for user-space packages. #25

@freakboy3742

Description

@freakboy3742

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew features, or improvements to existing features.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions