popup error message if Python not found
This commit is contained in:
parent
e631d33944
commit
8f02adacf9
1 changed files with 7 additions and 0 deletions
|
@ -181,6 +181,13 @@ class SendActionThread(threading.Thread):
|
|||
def plugin_loaded():
|
||||
global SETTINGS
|
||||
print('[WakaTime] Initializing WakaTime plugin v%s' % __version__)
|
||||
|
||||
if not HAS_SSL:
|
||||
python = python_binary()
|
||||
if not python:
|
||||
sublime.error_message("Unable to find Python binary!\nWakaTime needs Python to work correctly.\n\nGo to https://www.python.org/downloads")
|
||||
return
|
||||
|
||||
SETTINGS = sublime.load_settings(SETTINGS_FILE)
|
||||
after_loaded()
|
||||
|
||||
|
|
Loading…
Reference in a new issue