[python-win32] How to call Python methods and properties from VBS?

Mark Hammond skippy.hammond at gmail.com
Tue Sep 6 00:51:38 CEST 2011


On 4/09/2011 11:35 PM, FT wrote:
> Hi Again,
> To be more specific I have compiled the Python inside a distributed
> package and need to know how to call from within that compiled package
> any method. In other words do I have to register the Python inside my
> .vbs script before calling any methods?
> I am saying this so another user does not need to install Python, just
> call using com inside the distributed Python compiled version.
> If so, how do I get the Python setup or in a form to call? I will be
> doing all the calls from .VBS and how would the CreateObject from there
> be done to setup to call the compiled Python interpreter?

You should develop and test using normal Python, then once you want to 
distribute it to others, look into py2exe to "compile" it and an 
installer program such as nsis or inno so the user can simply install it.

Hope this helps,

Mark


More information about the python-win32 mailing list