Skip to content

Commit 3798ac5

Browse files
committed
Add a quick check for MST Store Python install
1 parent 176661b commit 3798ac5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

beets/ui/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1858,6 +1858,14 @@ def main(args=None):
18581858
"""Run the main command-line interface for beets. Includes top-level
18591859
exception handlers that print friendly error messages.
18601860
"""
1861+
if "AppData\\Local\\Microsoft\\WindowsApps" in sys.exec_prefix:
1862+
log.error(
1863+
"error: beets is unable to use the Microsoft Store version of Python. Please install Python from python.org."
1864+
)
1865+
log.error(
1866+
"error: More details can be found here https://beets.readthedocs.io/en/stable/guides/main.html"
1867+
)
1868+
sys.exit(1)
18611869
try:
18621870
_raw_main(args)
18631871
except UserError as exc:

0 commit comments

Comments
 (0)