trevorjamesmartin / script.module.pywin32

Pywin32 support for Kodi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pywin32

Pywin32 support for Kodi

Using Pywin32

Import pywin32setup before including any pywin32 modules. You can include it once in the top most level file, and all subsequent includes from that file should be guaranteed access. It does not have to be included in all files that call pywin32 modules, just once in the top level file that is the entry point. Example (show url path of all open explorer windows):

import pywin32setup
from win32com.client.gencache import EnsureDispatch


def run():
    for w in EnsureDispatch("Shell.Application").Windows():
        print(w.LocationName + "=" + w.LocationURL)

run()

About

Pywin32 support for Kodi

License:Other


Languages

Language:Python 94.4%Language:C++ 2.6%Language:HTML 2.5%Language:C 0.2%Language:ASP 0.1%Language:XSLT 0.1%Language:JavaScript 0.1%Language:Visual Basic 0.0%