2 # Copyright 2008,2009 Free Software Foundation, Inc.
4 # This application is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3, or (at your option)
9 # This application is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License along
15 # with this program; if not, write to the Free Software Foundation, Inc.,
16 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 # The presence of this file turns this directory into a Python package
21 # ----------------------------------------------------------------
22 # Temporary workaround for ticket:181 (swig+python problem)
26 from dl import RTLD_GLOBAL as _RTLD_GLOBAL
29 from DLFCN import RTLD_GLOBAL as _RTLD_GLOBAL
34 _dlopenflags = sys.getdlopenflags()
35 sys.setdlopenflags(_dlopenflags|_RTLD_GLOBAL)
36 # ----------------------------------------------------------------
39 # import swig generated symbols into the howto namespace
40 from howto_swig import *
42 # import any pure python here
45 # ----------------------------------------------------------------
48 sys.setdlopenflags(_dlopenflags) # Restore original flags
49 # ----------------------------------------------------------------