core (version): added workaround for Pyjamas, avoiding crash when reading VERSION
This commit is contained in:
parent
dbc3a361bb
commit
5f226a669c
1 changed files with 6 additions and 2 deletions
|
|
@ -19,5 +19,9 @@
|
|||
import os.path
|
||||
|
||||
version_file = os.path.join(os.path.dirname(__file__), 'VERSION')
|
||||
with open(version_file) as f:
|
||||
__version__ = f.read().strip()
|
||||
try:
|
||||
with open(version_file) as f:
|
||||
__version__ = f.read().strip()
|
||||
except NotImplementedError:
|
||||
# pyjamas workaround
|
||||
__version__ = '0.7D'
|
||||
|
|
|
|||
Loading…
Reference in a new issue