mirror of
https://github.com/beetbox/beets.git
synced 2026-01-30 12:02:41 +01:00
Add a quick check for MST Store Python install
This commit is contained in:
parent
176661bbf8
commit
3798ac5d02
1 changed files with 8 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue