__init__.py 505 B

1234567891011121314151617181920212223
  1. if type(__path__)==type(''):
  2. # For freeze to work!
  3. import sys
  4. try:
  5. import mapi
  6. sys.modules['win32com.mapi.mapi'] = mapi
  7. except ImportError:
  8. pass
  9. try:
  10. import exchange
  11. sys.modules['win32com.mapi.exchange'] = exchange
  12. except ImportError:
  13. pass
  14. try:
  15. import exchdapi
  16. sys.modules['win32com.mapi.exchdapi'] = exchdapi
  17. except ImportError:
  18. pass
  19. else:
  20. import win32com
  21. # See if we have a special directory for the binaries (for developers)
  22. win32com.__PackageSupportBuildPath__(__path__)