Skip to content

Refactor global state on import #1197

@woutdenolf

Description

@woutdenolf

Looking at the current multiprocessing.freeze_support() calls it needs to be done before importing anything instead at the CLI entry point. This can only mean that importing in PyMca creates global state. Creating global state on import never a good idea, it should be done lazily.

Originally posted by @woutdenolf in #1196

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions