Commit 9fbbd157 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix detection of missing LLVM

parent f29833c3
...@@ -141,6 +141,9 @@ The background pattern was downloaded from www.subtlepatterns.com ...@@ -141,6 +141,9 @@ The background pattern was downloaded from www.subtlepatterns.com
Changelog Changelog
========= =========
1.3.8 (01/2016)
- Fix logging when LLVM is not installed
1.3.7 (12/2015) 1.3.7 (12/2015)
- Added icon to use Continuous Signals from the GUI - Added icon to use Continuous Signals from the GUI
......
...@@ -117,7 +117,7 @@ except ImportError: ...@@ -117,7 +117,7 @@ except ImportError:
__all__ = ['opengeode', 'SDL_Scene', 'SDL_View', 'parse'] __all__ = ['opengeode', 'SDL_Scene', 'SDL_View', 'parse']
__version__ = '1.3.7' __version__ = '1.3.8'
if hasattr(sys, 'frozen'): if hasattr(sys, 'frozen'):
# Detect if we are running on Windows (py2exe-generated) # Detect if we are running on Windows (py2exe-generated)
...@@ -2171,7 +2171,6 @@ def init_logging(options): ...@@ -2171,7 +2171,6 @@ def init_logging(options):
# Set log level for all libraries # Set log level for all libraries
LOG.setLevel(level) LOG.setLevel(level)
try:
modules = ( modules = (
sdlSymbols, sdlSymbols,
genericSymbols, genericSymbols,
...@@ -2193,11 +2192,12 @@ def init_logging(options): ...@@ -2193,11 +2192,12 @@ def init_logging(options):
CGenerator, CGenerator,
StgBackend StgBackend
) )
for module in modules: for each in modules:
module.LOG.addHandler(handler_console) try:
module.LOG.setLevel(level) each.LOG.addHandler(handler_console)
except (NameError, AttributeError) as err: each.LOG.setLevel(level)
# Some modules may not be loaded (like llvm on Windows) except AttributeError as err:
# Discard unloaded modules (e.g. if LLVM is missing on target)
LOG.info(str(err)) LOG.info(str(err))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment