~ubuntu-branches/ubuntu/intrepid/blender/intrepid-updates

« back to all changes in this revision

Viewing changes to release/scripts/help_bpy_api.py

  • Committer: Bazaar Package Importer
  • Author(s): Cyril Brulebois
  • Date: 2008-08-08 02:45:40 UTC
  • mfrom: (12.1.14 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080808024540-kkjp7ekfivzhuw3l
Tags: 2.46+dfsg-4
* Fix python syntax warning in import_dxf.py, which led to nasty output
  in installation/upgrade logs during byte-compilation, using a patch
  provided by the script author (Closes: #492280):
   - debian/patches/45_fix_python_syntax_warning

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!BPY
 
2
"""
 
3
Name: 'Blender/Python Scripting API'
 
4
Blender: 244
 
5
Group: 'Help'
 
6
Tooltip: 'The Blender Python API reference manual'
 
7
"""
 
8
 
 
9
__author__ = "Matt Ebb"
 
10
__url__ = ("blender", "blenderartist")
 
11
__version__ = "1.0"
 
12
__bpydoc__ = """\
 
13
This script opens the user's default web browser at http://www.blender.org's
 
14
"Blenders Python API" page.
 
15
"""
 
16
 
 
17
# --------------------------------------------------------------------------
 
18
# Blender/Python Scripting Reference Help Menu Item
 
19
# --------------------------------------------------------------------------
 
20
# ***** BEGIN GPL LICENSE BLOCK *****
 
21
#
 
22
# This program is free software; you can redistribute it and/or
 
23
# modify it under the terms of the GNU General Public License
 
24
# as published by the Free Software Foundation; either version 2
 
25
# of the License, or (at your option) any later version.
 
26
#
 
27
# This program is distributed in the hope that it will be useful,
 
28
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
29
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
30
# GNU General Public License for more details.
 
31
#
 
32
# You should have received a copy of the GNU General Public License
 
33
# along with this program; if not, write to the Free Software Foundation,
 
34
# Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
35
#
 
36
# ***** END GPL LICENCE BLOCK *****
 
37
# --------------------------------------------------------------------------
 
38
 
 
39
import Blender, webbrowser
 
40
version = str(int(Blender.Get('version')))
 
41
webbrowser.open('http://www.blender.org/documentation/'+ version +'PythonDoc/index.html')