Map.py 483 B

12345678910111213141516171819
  1. try:
  2. from CMap import CMap, CIndexedMap
  3. Map = CMap
  4. IndexedMap = CIndexedMap
  5. except:
  6. from PMap import PMap, PIndexedMap
  7. Map = PMap
  8. IndexedMap = PIndexedMap
  9. print "Using pure python version of Map. Please compile CMap.\n"
  10. try:
  11. from CMultiMap import CMultiMap, CIndexedMultiMap
  12. MultiMap = CMultiMap
  13. IndexedMultiMap = CIndexedMultiMap
  14. except:
  15. print "Warning!! Please compile CMultiMap. There is no pure "
  16. print "python version of MultiMap.\n"