157 | | try: |
---|
158 | | imp.find_module( module ) |
---|
159 | | except ImportError: |
---|
160 | | ret = False |
---|
| 157 | path = None |
---|
| 158 | while module.count(".") > 0 and ret: |
---|
| 159 | thismod = module.split(".")[0] |
---|
| 160 | try: |
---|
| 161 | modinfo = imp.find_module( thismod, path ) |
---|
| 162 | except ImportError: |
---|
| 163 | ret = False |
---|
| 164 | else: |
---|
| 165 | newmod = imp.load_module( thismod, modinfo[0], modinfo[1], modinfo[2] ) |
---|
| 166 | path = newmod.__path__ |
---|
| 167 | module = ".".join( module.split(".")[1:] ) |
---|
| 168 | if ret: |
---|
| 169 | try: |
---|
| 170 | imp.find_module( module ) |
---|
| 171 | except ImportError: |
---|
| 172 | ret = False |
---|
287 | | if conf.CheckForApp( "xdg-desktop-menu --help" ): |
---|
288 | | env['XDG_TOOLS'] = True |
---|
289 | | else: |
---|
290 | | print """ |
---|
291 | | I couldn't find the program 'xdg-desktop-menu'. Together with xdg-icon-resource |
---|
292 | | this is needed to add the fancy entry to your menu. But the mixer will be installed, you can start it by executing "ffadomixer". |
---|
293 | | """ |
---|
294 | | elif conf.CheckForApp( "which pyuic4" ) and conf.CheckForPyModule( 'dbus' ) and conf.CheckForPyModule( 'PyQt4' ): |
---|
295 | | env['PYUIC4'] = True |
---|
296 | | build_mixer = True |
---|
| 303 | if conf.CheckForApp( 'xdg-desktop-menu --help' ): |
---|
| 304 | env['XDG_TOOLS'] = True |
---|
| 305 | else: |
---|
| 306 | print """ |
---|
| 307 | I couldn't find the program 'xdg-desktop-menu'. Together with xdg-icon-resource |
---|
| 308 | this is needed to add the fancy entry to your menu. But the mixer will be installed, you can start it by executing "ffado-mixer". |
---|
| 309 | """ |
---|