Skip to content

flask_csp in pyinstaller #11

@pleusna

Description

@pleusna

Hi,

Is there any way to config the csp_default.json located correctly?

The python is running no problem under python venv. However, when it is came to pyinstaller packed exe in windows. It failed and the error message shows below

FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\abc\AppData\Local\Temp\_MEI145522\flask_csp\csp_default.json'

The folder to hold the .json that is constant value, but why it is in the "Temp" folder.
Can I change it to a fixed location or included in the python code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions