20 lines
No EOL
417 B
Python
20 lines
No EOL
417 B
Python
import sys
|
|
|
|
success=False
|
|
in_ironpython="IronPython" in sys.version
|
|
|
|
if in_ironpython:
|
|
try:
|
|
from ironpython_keysyms import *
|
|
success=True
|
|
except ImportError,x:
|
|
raise
|
|
else:
|
|
try:
|
|
from keysyms import *
|
|
success=True
|
|
except ImportError,x:
|
|
pass
|
|
|
|
if not success:
|
|
raise ImportError("Could not import keysym for local pythonversion",x) |