[#18695] Replace python errors with useful messages when no full python installation is found

from Philipp Oeser (lichtwerk)
This commit is contained in:
2009-05-05 21:51:54 +00:00
parent 2bce9ff1d1
commit 4bc6749403
15 changed files with 147 additions and 65 deletions

View File

@@ -37,5 +37,11 @@ This script opens the user's default web browser at www.blender.org's
# ***** END GPL LICENCE BLOCK *****
# --------------------------------------------------------------------------
import Blender, webbrowser
webbrowser.open('http://www.blender.org/education-help/tutorials/')
import Blender
try: import webbrowser
except: webbrowser = None
if webbrowser:
webbrowser.open('http://www.blender.org/education-help/tutorials/')
else:
Blender.Draw.PupMenu("Error%t|This script requires a full python installation")