win32com short path name on 2k
Thomas Heller
theller at python.net
Wed Apr 26 08:29:06 EDT 2006
bytecolor wrote:
> Hi people,
>
> Using win32com on 2k SP3...
>>>> import win32com.client as w32c
>>>> fc = w32c.Dispatch('Featurecam.Application')
>>>> fc.InstallPath
> u'C:\\PROGRA~1\\FEATUR~1'
>
> Using win32com on XP Professional SP2...
>>>> import win32com.client as w32c
>>>> fc = w32c.Dispatch('Featurecam.Application')
>>>> fc.InstallPath
> u'C:\\Program Files\\FeatureCAM'
>
> Why the short vs long names?
>
That depends on how the com application was registered.
Thomas
More information about the Python-list
mailing list