[python-win32] Running Python + pywin32 portably

Mark Hammond skippy.hammond at gmail.com
Sat Feb 4 02:38:45 CET 2012


Hi Bill,

On 4/02/2012 9:52 AM, Bill Tutt wrote:
> Hrm. Is it just embedding via COM servers and services or something else?
> i.e. If I wrote a C++ WTL based UI to drive some embedded Python COM
> client logic or SQL queries do you think I'd need to do anything extra
> special?

Not running the postinstall script just means that pywintypesxx.dll and 
pythoncomxx.dll aren't in system32.  Assuming you have control over the 
environment this is running in, just ensuring those files are on the 
PATH should be sufficient.

Hope this clarifies...

Mark
>
> For various scary reasons I need to write a log collection tool to run
> on Win2k and Win2k8 R2. The tool needs to collect some WMI, SQL, and
> eventlog data.
> I can't reboot the computer the tool runs on, so I can't install any
> additional software. The job ought to be substantially simpler if I
> could write the data collection bits in Python instead of C++.
>
> Thanks,
> Bill
>
> On Fri, Jul 4, 2008 at 8:00 PM, Mark Hammond <mhammond at skippinet.com.au
> <mailto:mhammond at skippinet.com.au>> wrote:
>
>      > I know it's possible with Python - but does pywin32 "work" if the
>      > postinstall hasn't been run? Specifically, I don't care about
>      > embedding Python, or about creating COM servers or services, but I do
>      > want to be able to run "normal" Python scripts and COM clients.
>
>     In the simple case, it works fine without the post_install script
>     execute,
>     and so long as no embedding is attempted.
>
>     Cheers,
>
>     Mark
>
>     _______________________________________________
>     python-win32 mailing list
>     python-win32 at python.org <mailto:python-win32 at python.org>
>     http://mail.python.org/mailman/listinfo/python-win32
>
>
>
>
> _______________________________________________
> python-win32 mailing list
> python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32



More information about the python-win32 mailing list