node package manager
Love JavaScript? Your insights can make it even better. Take the 2017 JavaScript Ecosystem Survey »

check-python

check-python

Check for Python on the current system and return the value

Extracted from node-gyp.

NPM NPM

checkPython(function (err, python, version) {
  console.log('Python: %s\nPython version: %s', python, version)
})

Should work on Windows but there are many assumptions about install location and since this is not guaranteed you may have trouble.

License

goingnative is Copyright (c) 2014 Rod Vagg @rvagg and contributors licensed under the MIT License. All rights not explicitly granted in the MIT License are reserved. See the included LICENSE.md file for more details.