Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EN: PsychoPy launcher improvements #6437

Draft
wants to merge 15 commits into
base: dev
Choose a base branch
from

Conversation

mdcutone
Copy link
Member

@mdcutone mdcutone commented May 3, 2024

This PR makes several enhancements to the PsychoPy launcher:

  • The main PsychoPy app is now started in a sub-process with the correct environment for plugins to work without hacks to pkg_resources and site modules at runtime. Should be more compatible with py2app on Mac
  • Packages can be installed/upgraded/removed prior to starting the main application so they aren't installed into a running environment. Likely possible to do in-place upgrades of PsychoPy in the future.
  • PsychoPy is capable of self-restart after crashes or if initiated by the user: no more unrecoverable splash screen crashes
  • Session lock file for determining if the app crashed in a previous session to allow for recovery tasks on the next startup

WIP or Planned features:

  • Safe mode for recovering from startup crashes which disables plugins
  • Hardware enumeration on startup in subprocess to avoid loading PTB and others with the GUI. Save hardware mapping to JSON in user preferences directory for populating dialog fields
  • Command line options for clearing plugin cache, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant