Skip to content

Commit

Permalink
Make __init__.py ore robust against setup.py manipulations.
Browse files Browse the repository at this point in the history
  • Loading branch information
corranwebster committed May 8, 2019
1 parent 6bfceff commit bc8a10b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion traitsui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@

from __future__ import absolute_import

from ._version import full_version as __version__
try:
from traitsui._version import full_version as __version__
except ImportError:
__version__ = 'not-built'

__requires__ = [
'traits',
Expand Down

0 comments on commit bc8a10b

Please sign in to comment.