title: How to expose a function in an exe to Python using SWIG without creating a dll (.pyd)?
body: <p>I got a prototype working of exposing C++ classes &amp; methods to python using SWIG. I had to create a DLL (.pyd) of the classes/members I want to expose (_MyModule.pyd &amp; MyModule.py). </p>
  
  <p>But now I want to expose classes/members/functions in the exe. How to do this? Refactoring the exe is not an option.</p>
  
  <p>One way is to create a wrapper dll for these exe classes. But a dll calling exe methods does not sound too good.</p>
  
  <p>Looks like I am missing something obvious in SWIG.</p>
  
  <p>Thanks.</p>