6

I've got a quick question that I hope someone can help me with.

I'm in the process of creating/planning an app that needs to run cross platform and use a com library from Windows. In the past I've used win32py to run these com objects in a python app, I've been doing a bunch of research finding a solution on Mac but I've had no luck. Ideally I'd like to stay in Python as I already have working code for Python 2.7 working with this library. If there is a solution in another language however, I would like to hear it.

I realize that this sounds almost sort of backwards, but to make a long story short I have to make this com library work on Mac. I'm going to be doing some automated testing of some iOS stuff with the iOS SDK simulator.

Wuzseen
  • 687
  • 3
  • 14
  • 20
  • 2
    Short of emulating windows in a VM, you're probably not going to get anything using the win32 API working on a mac. – Wooble Feb 10 '12 at 19:23

1 Answers1

7

COM is Windows only. COM requires extensive use of the Windows registry and WinAPI. I've seen some frameworks emulate or mock COM behavior on other operating systems (e.g. MainWin on Linux/Solaris), but I don't know of one for Mac.

The win32py module is just a wrapper around WinAPI calls. So if the WinAPI isn't available, win32py won't work.

Is the logic you need something you can wrap a service around? In other words, can you host a service on a Windows box and have the Mac application invoke the service?

Jordan Parmer
  • 36,042
  • 30
  • 97
  • 119
  • Sorry for the very delayed response, hopefully you still see this. Yes, this is something the Mac app could invoke if it was on a windows box. I think the route I'm going to take is to have the Mac app save results in a network directory and access them from a secondary app that looks for new results. – Wuzseen Feb 13 '12 at 17:57
  • Probably your best bet if you are stuck with COM. – Jordan Parmer Feb 21 '12 at 22:27