[#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

@@ -36,6 +36,12 @@ This script opens the user's default web browser at http://www.blender.org's
# ***** END GPL LICENCE BLOCK *****
# --------------------------------------------------------------------------
import Blender, webbrowser
version = str(int(Blender.Get('version')))
webbrowser.open('http://www.blender.org/documentation/'+ version +'PythonDoc/')
import Blender
try: import webbrowser
except: webbrowser = None
if webbrowser:
version = str(int(Blender.Get('version')))
webbrowser.open('http://www.blender.org/documentation/'+ version +'PythonDoc/')
else:
Blender.Draw.PupMenu("Error%t|This script requires a full python installation")