| 1 |
# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- |
| 2 |
# librevenge |
| 3 |
# Version: MPL 2.0 / LGPLv2.1+ |
| 4 |
# |
| 5 |
# This Source Code Form is subject to the terms of the Mozilla Public |
| 6 |
# License, v. 2.0. If a copy of the MPL was not distributed with this |
| 7 |
# file, You can obtain one at http://mozilla.org/MPL/2.0/. |
| 8 |
# |
| 9 |
# Alternatively, the contents of this file may be used under the terms |
| 10 |
# of the GNU Lesser General Public License Version 2.1 or later |
| 11 |
# (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are |
| 12 |
# applicable instead of those above. |
| 13 |
# |
| 14 |
|
| 15 |
# Auto-load of all the printers. |
| 16 |
|
| 17 |
import sys |
| 18 |
|
| 19 |
import gdb |
| 20 |
|
| 21 |
pythondir = '@datadir@/librevenge/python' |
| 22 |
|
| 23 |
if pythondir not in sys.path: |
| 24 |
sys.path.insert(0, pythondir) |
| 25 |
|
| 26 |
import librevenge.v0_0.streams |
| 27 |
librevenge.v0_0.streams.register_pretty_printers(gdb.current_objfile()) |
| 28 |
|
| 29 |
# vim:set filetype=python shiftwidth=4 softtabstop=4 expandtab: |