Skip to content

Fix python detection to make sure if no python available, able to exit clearly

Craft setup process already direct user to install python first. However there are possibility where python executable are gone or missing. This will cause python to fall back into default windows aliases or if it disabled it will spit out some errors because python command is not found. Although craft is actually unusable if you're changing python due some library may missing and need reinstallation. CMIIW.

Commit 72e2bfbc caused bad output when python suddenly missing. This changes fix it by adding file exists checks before executing it and a bit code rearrange.

Currently tested on:

  • Win 10 clean install with App Execution Aliases enabled (default settings)
  • Win 10 clean install with App Execution Aliases disabled
  • Win 10 with Python 3.9 installed from App Store
  • Win 10 with [Python 3.5.2 windows installer] (https://www.python.org/downloads/release/python-352/)

Merge request reports