Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
9fbbd157
Commit
9fbbd157
authored
Jan 11, 2016
by
Maxime Perrotin
Browse files
Fix detection of missing LLVM
parent
f29833c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
9fbbd157
...
...
@@ -141,6 +141,9 @@ The background pattern was downloaded from www.subtlepatterns.com
Changelog
=========
1.
3.8 (01/2016)
-
Fix logging when LLVM is not installed
1.
3.7 (12/2015)
-
Added icon to use Continuous Signals from the GUI
...
...
opengeode/opengeode.py
View file @
9fbbd157
...
...
@@ -117,7 +117,7 @@ except ImportError:
__all__
=
[
'opengeode'
,
'SDL_Scene'
,
'SDL_View'
,
'parse'
]
__version__
=
'1.3.
7
'
__version__
=
'1.3.
8
'
if
hasattr
(
sys
,
'frozen'
):
# Detect if we are running on Windows (py2exe-generated)
...
...
@@ -2171,34 +2171,34 @@ def init_logging(options):
# Set log level for all libraries
LOG
.
setLevel
(
level
)
try
:
modules
=
(
sdl
Symbols
,
genericSymbols
,
ogAST
,
ogPars
er
,
Lande
r
,
AdaGenerator
,
undoCommands
,
Renderer
,
Clipbo
ar
d
,
Statechart
,
Helper
,
Asn1scc
,
Connectors
,
Pr
,
TextInteraction
,
Connec
tor
s
,
Llvm
Generator
,
CGenerator
,
StgBackend
)
for
module
in
modules
:
module
.
LOG
.
addHandler
(
handler_console
)
module
.
LOG
.
setLevel
(
level
)
except
(
NameError
,
AttributeError
)
as
err
:
# Some modules may not be loaded (like llvm on Windows
)
LOG
.
info
(
str
(
err
))
modules
=
(
sdlSymbols
,
generic
Symbols
,
ogAST
,
ogParser
,
Land
er
,
AdaGenerato
r
,
undoCommands
,
Renderer
,
Clipboard
,
Statech
ar
t
,
Helper
,
Asn1scc
,
Connectors
,
Pr
,
TextInteraction
,
Connectors
,
LlvmGenera
tor
,
C
Generator
,
StgBackend
)
for
each
in
modules
:
try
:
each
.
LOG
.
addHandler
(
handler_console
)
each
.
LOG
.
setLevel
(
level
)
except
AttributeError
as
err
:
# Discard unloaded modules (e.g. if LLVM is missing on target
)
LOG
.
info
(
str
(
err
))
def
parse
(
files
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment