lang/{python,ruby}: add doctor.el

This commit is contained in:
Henrik Lissner 2018-05-15 13:50:58 +02:00
parent c36e127ec5
commit fd16719324
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,8 @@
;;; lang/python/doctor.el -*- lexical-binding: t; -*-
(unless (executable-find "python")
(warn! "Python isn't installed."))
(when (executable-find "pyenv")
(unless (split-string (shell-command-to-string "pyenv versions --bare") "\n" t)
(warn! "No versions of python are available via pyenv, did you forget to install one?")))