diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-12-17 10:06:27 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-12-17 10:06:27 +0300 |
commit | 5b56bbfa0b8d48953b63bc4493078a34d3881242 (patch) | |
tree | 19ee2c3b97c449710a2ea82628c451d093703427 /release/scripts/ui/space_info.py | |
parent | 4474782aa3a2f72dc59f9dd81bd534cbd921175b (diff) |
script which dumps ui as xml in a fake blender envieonment.
useful for testing for bad api use (make sure UI uses limited functions).
Diffstat (limited to 'release/scripts/ui/space_info.py')
-rw-r--r-- | release/scripts/ui/space_info.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/release/scripts/ui/space_info.py b/release/scripts/ui/space_info.py index 8d440c0a02d..0b79063c3e9 100644 --- a/release/scripts/ui/space_info.py +++ b/release/scripts/ui/space_info.py @@ -348,6 +348,8 @@ class INFO_MT_help(bpy.types.Menu): bl_label = "Help" def draw(self, context): + import sys + layout = self.layout layout.operator("wm.url_open", text="Manual", icon='HELP').url = 'http://wiki.blender.org/index.php/Doc:Manual' @@ -366,7 +368,7 @@ class INFO_MT_help(bpy.types.Menu): layout.operator("help.operator_cheat_sheet", icon='TEXT') layout.operator("wm.sysinfo", icon='TEXT') layout.separator() - if bpy.app.build_platform[0:7] == 'Windows': + if sys.platform == "win32": layout.operator("wm.toggle_console", icon='CONSOLE') layout.separator() layout.operator("anim.update_data_paths", text="FCurve/Driver 2.54 fix", icon='HELP') |