1 # ##### BEGIN GPL LICENSE BLOCK #####
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software Foundation,
15 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 # ##### END GPL LICENSE BLOCK #####
22 Give access to blender data and utility functions.
37 # internal blender C module
38 from _bpy import types, props, app, data, context
41 from . import utils, path, ops
43 # fake operator module
44 ops = ops.ops_fake_module
50 # Possibly temp. addons path
51 from os.path import join, dirname, normpath
52 _sys.path.append(normpath(join(dirname(__file__),
53 "..", "..", "addons", "modules")))
55 # if "-d" in sys.argv: # Enable this to measure startup speed
58 cProfile.run('import bpy; bpy.utils.load_scripts()', 'blender.prof')
61 p = pstats.Stats('blender.prof')
62 p.sort_stats('cumulative').print_stats(100)