Commit 55df6f9e authored by Marcel Koek's avatar Marcel Koek
Browse files

Fixes importing etsconfig.

parent 917e3188
......@@ -55,7 +55,12 @@ from traitsui.api import Handler, View, Item, \
RangeEditor, EnumEditor, InstanceEditor
from traitsui.api import CustomEditor
from enthought.etsconfig.api import ETSConfig
# etsconfig moved to traits since ETS 4.0.
# If enthought is not installed try to import etsconfig from traits.
try:
from enthought.etsconfig.api import ETSConfig
except ImportError:
from traits.etsconfig.api import ETSConfig
from traitsui.menu import Action
if ETSConfig.toolkit == "wx":
......
Markdown is supported
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