checking if program is installing using python

Peter Hansen peter at engcorp.com
Wed Mar 30 15:25:11 EST 2005


wittempj at hotmail.com wrote:
> does this help?
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52224

It's very rare that a program like Word is installed
in the PATH, so it's unlikely this helps.

Generally you would need to look in the registry, or
perhaps use os.popen() to parse the output of executing
the command "assoc .doc", to do what is required.

It might help for the OP to describe more about what
he plans to do with the information, since there might
be simpler/better approaches.

-Peter



More information about the Python-list mailing list