Skip to content

Include a PYTHONPATH extension allowing for user-space packages #14

@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 the user may not have access to modify.

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 Data folders as part of the standard app path. This is probably:

C:\Users\<User>\AppData\Local\<AppAuthor>\<AppName>\user_packages

The first part of the path should be returned as the %APPDATA% environment variable.

Describe alternatives you've considered

Don't allow user-installed packages.

Additional context

Once this feature lands, the windows app template will need a new binary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew features, or improvements to existing features.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions