Skip to content

Commit

Permalink
Add a quick check for MST Store Python install
Browse files Browse the repository at this point in the history
  • Loading branch information
arogl committed Nov 22, 2024
1 parent 176661b commit 3798ac5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions beets/ui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1858,6 +1858,14 @@ def main(args=None):
"""Run the main command-line interface for beets. Includes top-level
exception handlers that print friendly error messages.
"""
if "AppData\\Local\\Microsoft\\WindowsApps" in sys.exec_prefix:
log.error(
"error: beets is unable to use the Microsoft Store version of Python. Please install Python from python.org."
)
log.error(
"error: More details can be found here https://beets.readthedocs.io/en/stable/guides/main.html"
)
sys.exit(1)
try:
_raw_main(args)
except UserError as exc:
Expand Down

0 comments on commit 3798ac5

Please sign in to comment.