py2docfx 0.1.15.dev2025736__py3-none-any.whl → 0.1.15.dev2038808__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- py2docfx/docfx_yaml/process_doctree.py +34 -21
- py2docfx/docfx_yaml/tests/test_method_arguments.py +7 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_core_metadata.py +21 -5
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/_msvccompiler.py +2 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/ccompiler.py +5 -2
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/__init__.py +27 -8
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build.py +1 -6
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_clib.py +1 -9
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_ext.py +1 -8
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/check.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/config.py +0 -2
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install.py +8 -17
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compat/numpy.py +2 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/base.py +8 -5
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/msvc.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/unix.py +15 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/dist.py +2 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/sysconfig.py +0 -10
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/tests/test_build_ext.py +60 -5
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/unixccompiler.py +6 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/util.py +7 -6
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_normalization.py +29 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/__init__.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/_bdist_wheel.py +613 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/_setuptools_logging.py +2 -2
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/bdist_wheel.py +25 -594
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/cli/__init__.py +6 -6
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/cli/convert.py +282 -223
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/macosx_libfile.py +22 -9
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/metadata.py +16 -13
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/util.py +0 -9
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/wheelfile.py +40 -9
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/bdist_wheel.py +6 -2
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/config/_apply_pyprojecttoml.py +48 -11
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/config/_validate_pyproject/extra_validations.py +31 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/config/_validate_pyproject/fastjsonschema_validations.py +222 -129
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/config/_validate_pyproject/formats.py +30 -3
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/dist.py +115 -9
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/msvc.py +12 -3
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/config/test_apply_pyprojecttoml.py +246 -13
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_bdist_wheel.py +93 -8
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_build_meta.py +17 -4
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_core_metadata.py +45 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_egg_info.py +24 -4
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_sdist.py +13 -1
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/__init__.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/any_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/api_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/compiler/plugin_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/descriptor_database.py +22 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/descriptor_pb2.py +82 -35
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/duration_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/empty_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/field_mask_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/builder.py +4 -3
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/containers.py +13 -0
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/decoder.py +62 -115
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/python_edition_defaults.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/python_message.py +15 -18
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/testing_refleaks.py +4 -1
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/type_checkers.py +5 -0
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/well_known_types.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/json_format.py +25 -9
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/message.py +26 -0
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/message_factory.py +0 -63
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/proto.py +38 -1
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/proto_text.py +129 -0
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/reflection.py +0 -49
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/runtime_version.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/source_context_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/struct_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/symbol_database.py +0 -18
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/text_format.py +8 -3
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/timestamp_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/type_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/unknown_fields.py +3 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/wrappers_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/msal/__init__.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/msal/application.py +51 -17
- py2docfx/venv/venv1/Lib/site-packages/msal/broker.py +18 -4
- py2docfx/venv/venv1/Lib/site-packages/msal/cloudshell.py +5 -1
- py2docfx/venv/venv1/Lib/site-packages/msal/managed_identity.py +5 -4
- py2docfx/venv/venv1/Lib/site-packages/msal/sku.py +6 -0
- py2docfx/venv/venv1/Lib/site-packages/msal/token_cache.py +31 -10
- py2docfx/venv/venv1/Lib/site-packages/msal_extensions/__init__.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/msal_extensions/cache_lock.py +4 -1
- py2docfx/venv/venv1/Lib/site-packages/msal_extensions/filelock.py +62 -0
- py2docfx/venv/venv1/Lib/site-packages/msal_extensions/libsecret.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/msal_extensions/token_cache.py +7 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_core_metadata.py +21 -5
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/_msvccompiler.py +2 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/ccompiler.py +5 -2
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/__init__.py +27 -8
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build.py +1 -6
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_clib.py +1 -9
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_ext.py +1 -8
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/check.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/config.py +0 -2
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install.py +8 -17
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compat/numpy.py +2 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/base.py +8 -5
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/msvc.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/unix.py +15 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/dist.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/sysconfig.py +0 -10
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/tests/test_build_ext.py +60 -5
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/unixccompiler.py +6 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/util.py +7 -6
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_normalization.py +29 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/__init__.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/_bdist_wheel.py +613 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/_setuptools_logging.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/bdist_wheel.py +25 -594
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/cli/__init__.py +6 -6
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/cli/convert.py +282 -223
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/macosx_libfile.py +22 -9
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/metadata.py +16 -13
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/util.py +0 -9
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/wheelfile.py +40 -9
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/bdist_wheel.py +6 -2
- py2docfx/venv/venv1/Lib/site-packages/setuptools/config/_apply_pyprojecttoml.py +48 -11
- py2docfx/venv/venv1/Lib/site-packages/setuptools/config/_validate_pyproject/extra_validations.py +31 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/config/_validate_pyproject/fastjsonschema_validations.py +222 -129
- py2docfx/venv/venv1/Lib/site-packages/setuptools/config/_validate_pyproject/formats.py +30 -3
- py2docfx/venv/venv1/Lib/site-packages/setuptools/dist.py +115 -9
- py2docfx/venv/venv1/Lib/site-packages/setuptools/msvc.py +12 -3
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/config/test_apply_pyprojecttoml.py +246 -13
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_bdist_wheel.py +93 -8
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_build_meta.py +17 -4
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_core_metadata.py +45 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_egg_info.py +24 -4
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_sdist.py +13 -1
- {py2docfx-0.1.15.dev2025736.dist-info → py2docfx-0.1.15.dev2038808.dist-info}/METADATA +1 -1
- {py2docfx-0.1.15.dev2025736.dist-info → py2docfx-0.1.15.dev2038808.dist-info}/RECORD +136 -593
- py2docfx/docfx_yaml/tests/test_process_doctree.py +0 -120
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/__init__.py +0 -82
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/ado_consts.py +0 -283
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/adodbapi.py +0 -1153
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/apibase.py +0 -723
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/db_print.py +0 -72
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/db_table_names.py +0 -21
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/xls_read.py +0 -41
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/xls_write.py +0 -41
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/is64bit.py +0 -34
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/process_connect_string.py +0 -137
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/schema_table.py +0 -16
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/setup.py +0 -68
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/adodbapitest.py +0 -1547
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/adodbapitestconfig.py +0 -184
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/dbapi20.py +0 -879
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/is64bit.py +0 -34
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/setuptestframework.py +0 -98
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/test_adodbapi_dbapi20.py +0 -195
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/tryconnection.py +0 -30
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/_parameterized.py +0 -420
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/service.py +0 -213
- py2docfx/venv/venv1/Lib/site-packages/isapi/__init__.py +0 -39
- py2docfx/venv/venv1/Lib/site-packages/isapi/install.py +0 -809
- py2docfx/venv/venv1/Lib/site-packages/isapi/isapicon.py +0 -121
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/advanced.py +0 -218
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector.py +0 -116
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector_asynch.py +0 -85
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector_with_filter.py +0 -162
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/test.py +0 -195
- py2docfx/venv/venv1/Lib/site-packages/isapi/simple.py +0 -73
- py2docfx/venv/venv1/Lib/site-packages/isapi/test/extension_simple.py +0 -114
- py2docfx/venv/venv1/Lib/site-packages/isapi/threaded_extension.py +0 -191
- py2docfx/venv/venv1/Lib/site-packages/portalocker/__about__.py +0 -6
- py2docfx/venv/venv1/Lib/site-packages/portalocker/__init__.py +0 -79
- py2docfx/venv/venv1/Lib/site-packages/portalocker/__main__.py +0 -122
- py2docfx/venv/venv1/Lib/site-packages/portalocker/constants.py +0 -59
- py2docfx/venv/venv1/Lib/site-packages/portalocker/exceptions.py +0 -27
- py2docfx/venv/venv1/Lib/site-packages/portalocker/portalocker.py +0 -154
- py2docfx/venv/venv1/Lib/site-packages/portalocker/redis.py +0 -236
- py2docfx/venv/venv1/Lib/site-packages/portalocker/utils.py +0 -569
- py2docfx/venv/venv1/Lib/site-packages/pythoncom.py +0 -4
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/basictimerapp.py +0 -258
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/customprint.py +0 -183
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/demoutils.py +0 -63
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/dlgappdemo.py +0 -51
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/dojobapp.py +0 -71
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/helloapp.py +0 -53
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/cmdserver.py +0 -113
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/createwin.py +0 -114
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/demoutils.py +0 -65
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/dibdemo.py +0 -73
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/dlgtest.py +0 -145
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/dyndlg.py +0 -104
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/fontdemo.py +0 -85
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/guidemo.py +0 -53
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/hiertest.py +0 -138
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/menutest.py +0 -13
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/objdoc.py +0 -57
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/demoutils.py +0 -63
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/flash.py +0 -95
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/msoffice.py +0 -159
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/ocxserialtest.py +0 -132
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/ocxtest.py +0 -243
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/webbrowser.py +0 -72
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/openGLDemo.py +0 -415
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/progressbar.py +0 -105
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/sliderdemo.py +0 -76
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/splittst.py +0 -79
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/threadedgui.py +0 -189
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/toolbar.py +0 -105
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/__init__.py +0 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/__init__.py +0 -133
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/configui.py +0 -34
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/dbgcon.py +0 -31
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/dbgpyapp.py +0 -48
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/debugger.py +0 -1097
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/fail.py +0 -54
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/ideoptions.py +0 -136
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/list.py +0 -146
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/login.py +0 -155
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/status.py +0 -242
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/docking/DockingBar.py +0 -676
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/docking/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/app.py +0 -411
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/bitmap.py +0 -168
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/cmdline.py +0 -54
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/dbgcommands.py +0 -188
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/dlgappcore.py +0 -76
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/ModuleBrowser.py +0 -235
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/__init__.py +0 -105
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/color/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/color/coloreditor.py +0 -646
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/configui.py +0 -299
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/document.py +0 -379
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/editor.py +0 -511
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/frame.py +0 -74
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/template.py +0 -59
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/vss.py +0 -104
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/help.py +0 -173
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/interact.py +0 -995
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/intpyapp.py +0 -552
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/intpydde.py +0 -65
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/scriptutils.py +0 -684
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/sgrepmdi.py +0 -749
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/startup.py +0 -70
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/stdin.py +0 -172
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/toolmenu.py +0 -279
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/window.py +0 -14
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/winout.py +0 -589
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/AutoExpand.py +0 -95
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/AutoIndent.py +0 -536
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/CallTips.py +0 -216
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/FormatParagraph.py +0 -166
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/IdleHistory.py +0 -87
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/PyParse.py +0 -585
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/activex.py +0 -79
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/afxres.py +0 -501
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/dialog.py +0 -277
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/docview.py +0 -151
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/object.py +0 -66
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/thread.py +0 -25
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/window.py +0 -50
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/IDLEenvironment.py +0 -593
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/bindings.py +0 -180
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/config.py +0 -363
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/configui.py +0 -291
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/control.py +0 -565
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/document.py +0 -312
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/find.py +0 -511
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/formatter.py +0 -704
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/keycodes.py +0 -190
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/scintillacon.py +0 -3083
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/view.py +0 -841
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/TraceCollector.py +0 -79
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/browseProjects.py +0 -323
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/browser.py +0 -494
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/hierlist.py +0 -353
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/regedit.py +0 -382
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/regpy.py +0 -80
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/BackupRead_BackupWrite.py +0 -119
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/BackupSeek_streamheaders.py +0 -137
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/CopyFileEx.py +0 -57
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/CreateFileTransacted_MiniVersion.py +0 -122
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/EvtFormatMessage.py +0 -83
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/EvtSubscribe_pull.py +0 -28
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/EvtSubscribe_push.py +0 -32
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/FileSecurityTest.py +0 -137
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/GetSaveFileName.py +0 -43
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/NetValidatePasswordPolicy.py +0 -127
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/OpenEncryptedFileRaw.py +0 -66
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/RegCreateKeyTransacted.py +0 -60
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/RegRestoreKey.py +0 -71
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/SystemParametersInfo.py +0 -210
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/c_extension/setup.py +0 -26
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/dde/ddeclient.py +0 -18
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/dde/ddeserver.py +0 -42
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/desktopmanager.py +0 -246
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/eventLogDemo.py +0 -143
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/getfilever.py +0 -33
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/mmapfile_demo.py +0 -101
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/pipes/cat.py +0 -17
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/pipes/runproc.py +0 -114
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/print_desktop.py +0 -113
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/rastest.py +0 -166
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/GetTokenInformation.py +0 -110
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/account_rights.py +0 -49
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/explicit_entries.py +0 -170
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/get_policy_info.py +0 -39
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/list_rights.py +0 -35
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/localized_names.py +0 -70
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/lsaregevent.py +0 -14
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/lsastore.py +0 -12
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/query_information.py +0 -25
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/regsave_sa.py +0 -61
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/regsecurity.py +0 -36
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sa_inherit.py +0 -8
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/security_enums.py +0 -336
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_file_audit.py +0 -106
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_file_owner.py +0 -73
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_policy_info.py +0 -25
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setkernelobjectsecurity.py +0 -134
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setnamedsecurityinfo.py +0 -131
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setsecurityinfo.py +0 -131
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setuserobjectsecurity.py +0 -102
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/fetch_url.py +0 -158
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/simple_auth.py +0 -72
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/socket_server.py +0 -199
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/validate_password.py +0 -41
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/nativePipeTestService.py +0 -63
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/pipeTestService.py +0 -185
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/pipeTestServiceClient.py +0 -158
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/serviceEvents.py +0 -98
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/timer_demo.py +0 -72
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32clipboardDemo.py +0 -155
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32clipboard_bitmapdemo.py +0 -117
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32comport_demo.py +0 -174
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32console_demo.py +0 -132
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32cred_demo.py +0 -82
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32fileDemo.py +0 -41
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_demo.py +0 -177
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_devicenotify.py +0 -106
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_dialog.py +0 -445
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_menu.py +0 -464
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_taskbar.py +0 -136
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32netdemo.py +0 -272
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32rcparser_demo.py +0 -86
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32servicedemo.py +0 -23
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32ts_logoff_disconnected.py +0 -25
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32wnet/testwnet.py +0 -123
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32wnet/winnetwk.py +0 -100
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/winprocess.py +0 -230
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/_win32verstamp_pywin32ctypes.py +0 -164
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/afxres.py +0 -8
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/commctrl.py +0 -1551
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/mmsystem.py +0 -956
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/netbios.py +0 -293
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/ntsecuritycon.py +0 -731
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywin32_bootstrap.py +0 -21
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywin32_testutil.py +0 -291
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywintypes.py +0 -124
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/rasutil.py +0 -40
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/regcheck.py +0 -161
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/regutil.py +0 -395
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/sspi.py +0 -413
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/sspicon.py +0 -477
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win2kras.py +0 -14
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32con.py +0 -5064
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32cryptcon.py +0 -1922
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32evtlogutil.py +0 -225
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32gui_struct.py +0 -957
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32inetcon.py +0 -1086
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32netcon.py +0 -627
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32pdhquery.py +0 -570
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32pdhutil.py +0 -212
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32rcparser.py +0 -674
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32serviceutil.py +0 -1073
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32timezone.py +0 -1201
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32traceutil.py +0 -59
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32verstamp.py +0 -235
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/winerror.py +0 -7362
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/winioctlcon.py +0 -1079
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/winnt.py +0 -1347
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/winperf.py +0 -236
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/winxptheme.py +0 -8
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/ControlService.py +0 -594
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/VersionStamp/BrandProject.py +0 -97
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/VersionStamp/bulkstamp.py +0 -156
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/VersionStamp/vssutil.py +0 -201
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/backupEventLog.py +0 -46
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/h2py.py +0 -194
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/killProcName.py +0 -62
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/pywin32_postinstall.py +0 -733
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/pywin32_testall.py +0 -120
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/rasutil.py +0 -98
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/regsetup.py +0 -607
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/setup_d.py +0 -111
- py2docfx/venv/venv1/Lib/site-packages/win32/test/handles.py +0 -175
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_clipboard.py +0 -137
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_exceptions.py +0 -213
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_odbc.py +0 -264
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_pywintypes.py +0 -111
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_security.py +0 -166
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_sspi.py +0 -229
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32api.py +0 -273
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32clipboard.py +0 -59
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32cred.py +0 -91
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32crypt.py +0 -144
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32event.py +0 -119
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32file.py +0 -1096
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32gui.py +0 -227
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32guistruct.py +0 -333
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32inet.py +0 -108
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32net.py +0 -23
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32pipe.py +0 -148
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32print.py +0 -24
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32profile.py +0 -19
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32rcparser.py +0 -70
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32timezone.py +0 -16
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32trace.py +0 -366
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32ts.py +0 -19
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32wnet.py +0 -174
- py2docfx/venv/venv1/Lib/site-packages/win32/test/testall.py +0 -223
- py2docfx/venv/venv1/Lib/site-packages/win32/winxpgui.py +0 -13
- py2docfx/venv/venv1/Lib/site-packages/win32com/__init__.py +0 -134
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/CLSIDToClass.py +0 -60
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/__init__.py +0 -717
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/build.py +0 -771
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/combrowse.py +0 -604
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/connect.py +0 -48
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/dynamic.py +0 -699
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/gencache.py +0 -825
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/genpy.py +0 -1350
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/makepy.py +0 -453
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/selecttlb.py +0 -182
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/tlbrowse.py +0 -277
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/util.py +0 -103
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/connect.py +0 -96
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/dump_clipboard.py +0 -74
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/eventsApartmentThreaded.py +0 -98
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/eventsFreeThreaded.py +0 -92
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/excelAddin.py +0 -169
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/excelRTDServer.py +0 -434
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/iebutton.py +0 -214
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/ietoolbar.py +0 -368
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/outlookAddin.py +0 -135
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/trybag.py +0 -78
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegw.py +0 -618
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegwenum.py +0 -331
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegwparse.py +0 -1017
- py2docfx/venv/venv1/Lib/site-packages/win32com/olectl.py +0 -70
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/connect.py +0 -85
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/dispatcher.py +0 -239
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/exception.py +0 -99
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/factory.py +0 -26
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/localserver.py +0 -53
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/policy.py +0 -803
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/register.py +0 -677
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/util.py +0 -229
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/PythonTools.py +0 -47
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/dictionary.py +0 -133
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/interp.py +0 -59
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/perfmon.py +0 -36
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/test_pycomtest.py +0 -181
- py2docfx/venv/venv1/Lib/site-packages/win32com/storagecon.py +0 -142
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/GenTestScripts.py +0 -95
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/daodump.py +0 -88
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/errorSemantics.py +0 -243
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/pippo_server.py +0 -96
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/policySemantics.py +0 -115
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testADOEvents.py +0 -100
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testAXScript.py +0 -44
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testAccess.py +0 -185
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testArrays.py +0 -99
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testClipboard.py +0 -169
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testCollections.py +0 -159
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testConversionErrors.py +0 -35
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDCOM.py +0 -50
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDates.py +0 -74
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDictionary.py +0 -101
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDynamic.py +0 -83
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testExchange.py +0 -121
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testExplorer.py +0 -139
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testGIT.py +0 -142
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testGatewayAddresses.py +0 -149
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testIterators.py +0 -140
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testMSOffice.py +0 -184
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testMSOfficeEvents.py +0 -138
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testMarshal.py +0 -160
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPersist.py +0 -227
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPippo.py +0 -80
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPyComTest.py +0 -918
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testROT.py +0 -29
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testServers.py +0 -51
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testShell.py +0 -272
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testStorage.py +0 -88
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testStreams.py +0 -147
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testWMI.py +0 -18
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testall.py +0 -320
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testmakepy.py +0 -54
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testvb.py +0 -583
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testvbscript_regexp.py +0 -40
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testxslt.py +0 -34
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/util.py +0 -262
- py2docfx/venv/venv1/Lib/site-packages/win32com/universal.py +0 -224
- py2docfx/venv/venv1/Lib/site-packages/win32com/util.py +0 -35
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/__init__.py +0 -113
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/adsicon.py +0 -340
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/objectPicker.py +0 -68
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/scp.py +0 -565
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/search.py +0 -151
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/test.py +0 -274
- py2docfx/venv/venv1/Lib/site-packages/win32comext/authorization/__init__.py +0 -6
- py2docfx/venv/venv1/Lib/site-packages/win32comext/authorization/demos/EditSecurity.py +0 -229
- py2docfx/venv/venv1/Lib/site-packages/win32comext/authorization/demos/EditServiceSecurity.py +0 -219
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axcontrol/__init__.py +0 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/__init__.py +0 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/adb.py +0 -467
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/codecontainer.py +0 -279
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/contexts.py +0 -58
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/debugger.py +0 -238
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/documents.py +0 -135
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/dump.py +0 -57
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/expressions.py +0 -212
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/gateways.py +0 -583
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/stackframe.py +0 -178
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/util.py +0 -98
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/__init__.py +0 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/asputil.py +0 -13
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/debug.py +0 -223
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/error.py +0 -262
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/framework.py +0 -1291
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/pydumper.py +0 -78
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/pyscript.py +0 -438
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/pyscript_rexec.py +0 -54
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/scriptdispatch.py +0 -103
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/server/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/server/axsite.py +0 -145
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/test/leakTest.py +0 -185
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/test/testHost.py +0 -240
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/test/testHost4Dbg.py +0 -83
- py2docfx/venv/venv1/Lib/site-packages/win32comext/bits/__init__.py +0 -6
- py2docfx/venv/venv1/Lib/site-packages/win32comext/bits/test/show_all_jobs.py +0 -48
- py2docfx/venv/venv1/Lib/site-packages/win32comext/bits/test/test_bits.py +0 -119
- py2docfx/venv/venv1/Lib/site-packages/win32comext/directsound/__init__.py +0 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/directsound/test/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/directsound/test/ds_record.py +0 -60
- py2docfx/venv/venv1/Lib/site-packages/win32comext/directsound/test/ds_test.py +0 -402
- py2docfx/venv/venv1/Lib/site-packages/win32comext/ifilter/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/ifilter/demo/filterDemo.py +0 -300
- py2docfx/venv/venv1/Lib/site-packages/win32comext/ifilter/ifiltercon.py +0 -110
- py2docfx/venv/venv1/Lib/site-packages/win32comext/internet/__init__.py +0 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/internet/inetcon.py +0 -261
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/__init__.py +0 -21
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/demos/mapisend.py +0 -98
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/emsabtags.py +0 -875
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/mapitags.py +0 -1023
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/mapiutil.py +0 -211
- py2docfx/venv/venv1/Lib/site-packages/win32comext/propsys/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/propsys/pscon.py +0 -838
- py2docfx/venv/venv1/Lib/site-packages/win32comext/propsys/test/testpropsys.py +0 -5
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/__init__.py +0 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/IActiveDesktop.py +0 -83
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/IFileOperationProgressSink.py +0 -179
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/IShellLinkDataList.py +0 -67
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/ITransferAdviseSink.py +0 -93
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/IUniformResourceLocator.py +0 -56
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/browse_for_folder.py +0 -45
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/create_link.py +0 -73
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/dump_link.py +0 -58
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/explorer_browser.py +0 -143
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/column_provider.py +0 -125
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/context_menu.py +0 -122
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/copy_hook.py +0 -84
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/empty_volume_cache.py +0 -188
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/folder_view.py +0 -866
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/icon_handler.py +0 -81
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/shell_view.py +0 -971
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/shellexecuteex.py +0 -19
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/viewstate.py +0 -68
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/walk_shell_folders.py +0 -24
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/shellcon.py +0 -1615
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/test/testSHFileOperation.py +0 -75
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/test/testShellFolder.py +0 -21
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/test/testShellItem.py +0 -69
- py2docfx/venv/venv1/Lib/site-packages/win32comext/taskscheduler/__init__.py +0 -6
- py2docfx/venv/venv1/Lib/site-packages/win32comext/taskscheduler/test/test_addtask.py +0 -66
- py2docfx/venv/venv1/Lib/site-packages/win32comext/taskscheduler/test/test_addtask_1.py +0 -68
- py2docfx/venv/venv1/Lib/site-packages/win32comext/taskscheduler/test/test_addtask_2.py +0 -49
- py2docfx/venv/venv1/Lib/site-packages/win32comext/taskscheduler/test/test_localsystem.py +0 -3
- py2docfx/venv/venv1/Scripts/pywin32_postinstall.py +0 -733
- py2docfx/venv/venv1/Scripts/pywin32_testall.py +0 -120
- {py2docfx-0.1.15.dev2025736.dist-info → py2docfx-0.1.15.dev2038808.dist-info}/WHEEL +0 -0
- {py2docfx-0.1.15.dev2025736.dist-info → py2docfx-0.1.15.dev2038808.dist-info}/top_level.txt +0 -0
@@ -1,825 +0,0 @@
|
|
1
|
-
"""Manages the cache of generated Python code.
|
2
|
-
|
3
|
-
Description
|
4
|
-
This file manages the cache of generated Python code. When run from the
|
5
|
-
command line, it also provides a number of options for managing that cache.
|
6
|
-
|
7
|
-
Implementation
|
8
|
-
Each typelib is generated into a filename of format "{guid}x{lcid}x{major}x{minor}.py"
|
9
|
-
|
10
|
-
An external persistant dictionary maps from all known IIDs in all known type libraries
|
11
|
-
to the type library itself.
|
12
|
-
|
13
|
-
Thus, whenever Python code knows the IID of an object, it can find the IID, LCID and version of
|
14
|
-
the type library which supports it. Given this information, it can find the Python module
|
15
|
-
with the support.
|
16
|
-
|
17
|
-
If necessary, this support can be generated on the fly.
|
18
|
-
|
19
|
-
Hacks, to do, etc
|
20
|
-
Currently just uses a pickled dictionary, but should used some sort of indexed file.
|
21
|
-
Maybe an OLE2 compound file, or a bsddb file?
|
22
|
-
"""
|
23
|
-
|
24
|
-
from __future__ import annotations
|
25
|
-
|
26
|
-
import contextlib
|
27
|
-
import glob
|
28
|
-
import os
|
29
|
-
import sys
|
30
|
-
from importlib import reload
|
31
|
-
from types import ModuleType
|
32
|
-
from typing import Any
|
33
|
-
|
34
|
-
import pythoncom
|
35
|
-
import pywintypes
|
36
|
-
import win32com
|
37
|
-
import win32com.client
|
38
|
-
import win32event
|
39
|
-
|
40
|
-
from . import CLSIDToClass
|
41
|
-
|
42
|
-
bForDemandDefault = 0 # Default value of bForDemand - toggle this to change the world - see also makepy.py
|
43
|
-
|
44
|
-
# The global dictionary
|
45
|
-
clsidToTypelib: dict[str, tuple[str, int, int, int]] = {}
|
46
|
-
|
47
|
-
# If we have a different version of the typelib generated, this
|
48
|
-
# maps the "requested version" to the "generated version".
|
49
|
-
versionRedirectMap: dict[tuple[str, int, int, int], ModuleType | None] = {}
|
50
|
-
|
51
|
-
# There is no reason we *must* be readonly in a .zip, but we are now,
|
52
|
-
# Rather than check for ".zip" or other tricks, PEP302 defines
|
53
|
-
# a "__loader__" attribute, so we use that.
|
54
|
-
# (Later, it may become necessary to check if the __loader__ can update files,
|
55
|
-
# as a .zip loader potentially could - but punt all that until a need arises)
|
56
|
-
is_readonly = is_zip = hasattr(win32com, "__loader__") and hasattr(
|
57
|
-
win32com.__loader__, "archive"
|
58
|
-
)
|
59
|
-
|
60
|
-
# A dictionary of ITypeLibrary objects for demand generation explicitly handed to us
|
61
|
-
# Keyed by usual clsid, lcid, major, minor
|
62
|
-
# Typing as Any because PyITypeLib is not exposed
|
63
|
-
demandGeneratedTypeLibraries: dict[tuple[str, int, int, int], Any] = {}
|
64
|
-
|
65
|
-
import pickle
|
66
|
-
|
67
|
-
|
68
|
-
def __init__():
|
69
|
-
# Initialize the module. Called once explicitly at module import below.
|
70
|
-
try:
|
71
|
-
_LoadDicts()
|
72
|
-
except OSError:
|
73
|
-
Rebuild()
|
74
|
-
|
75
|
-
|
76
|
-
pickleVersion = 1
|
77
|
-
|
78
|
-
|
79
|
-
def _SaveDicts():
|
80
|
-
if is_readonly:
|
81
|
-
raise RuntimeError(
|
82
|
-
"Trying to write to a readonly gencache ('%s')!" % win32com.__gen_path__
|
83
|
-
)
|
84
|
-
f = open(os.path.join(GetGeneratePath(), "dicts.dat"), "wb")
|
85
|
-
try:
|
86
|
-
p = pickle.Pickler(f)
|
87
|
-
p.dump(pickleVersion)
|
88
|
-
p.dump(clsidToTypelib)
|
89
|
-
finally:
|
90
|
-
f.close()
|
91
|
-
|
92
|
-
|
93
|
-
def _LoadDicts():
|
94
|
-
# Load the dictionary from a .zip file if that is where we live.
|
95
|
-
if is_zip:
|
96
|
-
import io
|
97
|
-
|
98
|
-
loader = win32com.__loader__
|
99
|
-
arc_path = loader.archive
|
100
|
-
dicts_path = os.path.join(win32com.__gen_path__, "dicts.dat")
|
101
|
-
if dicts_path.startswith(arc_path):
|
102
|
-
dicts_path = dicts_path[len(arc_path) + 1 :]
|
103
|
-
else:
|
104
|
-
# Hm. See below.
|
105
|
-
return
|
106
|
-
try:
|
107
|
-
data = loader.get_data(dicts_path)
|
108
|
-
except AttributeError:
|
109
|
-
# The __loader__ has no get_data method. See below.
|
110
|
-
return
|
111
|
-
except OSError:
|
112
|
-
# Our gencache is in a .zip file (and almost certainly readonly)
|
113
|
-
# but no dicts file. That actually needn't be fatal for a frozen
|
114
|
-
# application. Assuming they call "EnsureModule" with the same
|
115
|
-
# typelib IDs they have been frozen with, that EnsureModule will
|
116
|
-
# correctly re-build the dicts on the fly. However, objects that
|
117
|
-
# rely on the gencache but have not done an EnsureModule will
|
118
|
-
# fail (but their apps are likely to fail running from source
|
119
|
-
# with a clean gencache anyway, as then they would be getting
|
120
|
-
# Dynamic objects until the cache is built - so the best answer
|
121
|
-
# for these apps is to call EnsureModule, rather than freezing
|
122
|
-
# the dict)
|
123
|
-
return
|
124
|
-
f = io.BytesIO(data)
|
125
|
-
else:
|
126
|
-
# NOTE: OSError on file open must be caught by caller.
|
127
|
-
f = open(os.path.join(win32com.__gen_path__, "dicts.dat"), "rb")
|
128
|
-
try:
|
129
|
-
p = pickle.Unpickler(f)
|
130
|
-
version = p.load()
|
131
|
-
global clsidToTypelib
|
132
|
-
clsidToTypelib = p.load()
|
133
|
-
versionRedirectMap.clear()
|
134
|
-
finally:
|
135
|
-
f.close()
|
136
|
-
|
137
|
-
|
138
|
-
@contextlib.contextmanager
|
139
|
-
def ModuleMutex(module_name):
|
140
|
-
"""Given the output of GetGeneratedFilename, acquire a named mutex for that module
|
141
|
-
|
142
|
-
This is required so that writes (generation) don't interfere with each other and with reads (import)
|
143
|
-
"""
|
144
|
-
mutex = win32event.CreateMutex(None, False, module_name)
|
145
|
-
with contextlib.closing(mutex):
|
146
|
-
# acquire mutex
|
147
|
-
win32event.WaitForSingleObject(mutex, win32event.INFINITE)
|
148
|
-
try:
|
149
|
-
yield
|
150
|
-
finally:
|
151
|
-
win32event.ReleaseMutex(mutex)
|
152
|
-
|
153
|
-
|
154
|
-
def GetGeneratedFileName(clsid, lcid, major, minor):
|
155
|
-
"""Given the clsid, lcid, major and minor for a type lib, return
|
156
|
-
the file name (no extension) providing this support.
|
157
|
-
"""
|
158
|
-
return str(clsid).upper()[1:-1] + f"x{lcid}x{major}x{minor}"
|
159
|
-
|
160
|
-
|
161
|
-
def SplitGeneratedFileName(fname):
|
162
|
-
"""Reverse of GetGeneratedFileName()"""
|
163
|
-
return tuple(fname.split("x", 4))
|
164
|
-
|
165
|
-
|
166
|
-
def GetGeneratePath():
|
167
|
-
"""Returns the name of the path to generate to.
|
168
|
-
Checks the directory is OK.
|
169
|
-
"""
|
170
|
-
assert not is_readonly, "Why do you want the genpath for a readonly store?"
|
171
|
-
try:
|
172
|
-
os.makedirs(win32com.__gen_path__)
|
173
|
-
# os.mkdir(win32com.__gen_path__)
|
174
|
-
except OSError:
|
175
|
-
pass
|
176
|
-
try:
|
177
|
-
fname = os.path.join(win32com.__gen_path__, "__init__.py")
|
178
|
-
os.stat(fname)
|
179
|
-
except OSError:
|
180
|
-
f = open(fname, "w")
|
181
|
-
f.write(
|
182
|
-
"# Generated file - this directory may be deleted to reset the COM cache...\n"
|
183
|
-
)
|
184
|
-
f.write("import win32com\n")
|
185
|
-
f.write(
|
186
|
-
"if __path__[:-1] != win32com.__gen_path__: __path__.append(win32com.__gen_path__)\n"
|
187
|
-
)
|
188
|
-
f.close()
|
189
|
-
|
190
|
-
return win32com.__gen_path__
|
191
|
-
|
192
|
-
|
193
|
-
#
|
194
|
-
# The helpers for win32com.client.Dispatch and OCX clients.
|
195
|
-
#
|
196
|
-
def GetClassForProgID(progid):
|
197
|
-
"""Get a Python class for a Program ID
|
198
|
-
|
199
|
-
Given a Program ID, return a Python class which wraps the COM object
|
200
|
-
|
201
|
-
Returns the Python class, or None if no module is available.
|
202
|
-
|
203
|
-
Params
|
204
|
-
progid -- A COM ProgramID or IID (eg, "Word.Application")
|
205
|
-
"""
|
206
|
-
clsid = pywintypes.IID(progid) # This auto-converts named to IDs.
|
207
|
-
return GetClassForCLSID(clsid)
|
208
|
-
|
209
|
-
|
210
|
-
def GetClassForCLSID(clsid):
|
211
|
-
"""Get a Python class for a CLSID
|
212
|
-
|
213
|
-
Given a CLSID, return a Python class which wraps the COM object
|
214
|
-
|
215
|
-
Returns the Python class, or None if no module is available.
|
216
|
-
|
217
|
-
Params
|
218
|
-
clsid -- A COM CLSID (or string repr of one)
|
219
|
-
"""
|
220
|
-
# first, take a short-cut - we may already have generated support ready-to-roll.
|
221
|
-
clsid = str(clsid)
|
222
|
-
if CLSIDToClass.HasClass(clsid):
|
223
|
-
return CLSIDToClass.GetClass(clsid)
|
224
|
-
mod = GetModuleForCLSID(clsid)
|
225
|
-
if mod is None:
|
226
|
-
return None
|
227
|
-
try:
|
228
|
-
return CLSIDToClass.GetClass(clsid)
|
229
|
-
except KeyError:
|
230
|
-
return None
|
231
|
-
|
232
|
-
|
233
|
-
def GetModuleForProgID(progid):
|
234
|
-
"""Get a Python module for a Program ID
|
235
|
-
|
236
|
-
Given a Program ID, return a Python module which contains the
|
237
|
-
class which wraps the COM object.
|
238
|
-
|
239
|
-
Returns the Python module, or None if no module is available.
|
240
|
-
|
241
|
-
Params
|
242
|
-
progid -- A COM ProgramID or IID (eg, "Word.Application")
|
243
|
-
"""
|
244
|
-
try:
|
245
|
-
iid = pywintypes.IID(progid)
|
246
|
-
except pywintypes.com_error:
|
247
|
-
return None
|
248
|
-
return GetModuleForCLSID(iid)
|
249
|
-
|
250
|
-
|
251
|
-
def GetModuleForCLSID(clsid):
|
252
|
-
"""Get a Python module for a CLSID
|
253
|
-
|
254
|
-
Given a CLSID, return a Python module which contains the
|
255
|
-
class which wraps the COM object.
|
256
|
-
|
257
|
-
Returns the Python module, or None if no module is available.
|
258
|
-
|
259
|
-
Params
|
260
|
-
progid -- A COM CLSID (ie, not the description)
|
261
|
-
"""
|
262
|
-
clsid_str = str(clsid)
|
263
|
-
try:
|
264
|
-
typelibCLSID, lcid, major, minor = clsidToTypelib[clsid_str]
|
265
|
-
except KeyError:
|
266
|
-
return None
|
267
|
-
|
268
|
-
try:
|
269
|
-
mod = GetModuleForTypelib(typelibCLSID, lcid, major, minor)
|
270
|
-
except ImportError:
|
271
|
-
mod = None
|
272
|
-
if mod is not None:
|
273
|
-
sub_mod = mod.CLSIDToPackageMap.get(clsid_str)
|
274
|
-
if sub_mod is None:
|
275
|
-
sub_mod = mod.VTablesToPackageMap.get(clsid_str)
|
276
|
-
if sub_mod is not None:
|
277
|
-
sub_mod_name = mod.__name__ + "." + sub_mod
|
278
|
-
try:
|
279
|
-
with ModuleMutex(mod.__name__.split(".")[-1]):
|
280
|
-
__import__(sub_mod_name)
|
281
|
-
except ImportError:
|
282
|
-
info = typelibCLSID, lcid, major, minor
|
283
|
-
# Force the generation. If this typelibrary has explicitly been added,
|
284
|
-
# use it (it may not be registered, causing a lookup by clsid to fail)
|
285
|
-
if info in demandGeneratedTypeLibraries:
|
286
|
-
info = demandGeneratedTypeLibraries[info]
|
287
|
-
from . import makepy
|
288
|
-
|
289
|
-
makepy.GenerateChildFromTypeLibSpec(sub_mod, info)
|
290
|
-
# Generate does an import...
|
291
|
-
mod = sys.modules[sub_mod_name]
|
292
|
-
return mod
|
293
|
-
|
294
|
-
|
295
|
-
def GetModuleForTypelib(typelibCLSID, lcid, major, minor):
|
296
|
-
"""Get a Python module for a type library ID
|
297
|
-
|
298
|
-
Given the CLSID of a typelibrary, return an imported Python module,
|
299
|
-
else None
|
300
|
-
|
301
|
-
Params
|
302
|
-
typelibCLSID -- IID of the type library.
|
303
|
-
major -- Integer major version.
|
304
|
-
minor -- Integer minor version
|
305
|
-
lcid -- Integer LCID for the library.
|
306
|
-
"""
|
307
|
-
modName = GetGeneratedFileName(typelibCLSID, lcid, major, minor)
|
308
|
-
mod = _GetModule(modName)
|
309
|
-
# If the import worked, it doesn't mean we have actually added this
|
310
|
-
# module to our cache though - check that here.
|
311
|
-
if "_in_gencache_" not in mod.__dict__:
|
312
|
-
AddModuleToCache(typelibCLSID, lcid, major, minor)
|
313
|
-
assert "_in_gencache_" in mod.__dict__
|
314
|
-
return mod
|
315
|
-
|
316
|
-
|
317
|
-
def MakeModuleForTypelib(
|
318
|
-
typelibCLSID,
|
319
|
-
lcid,
|
320
|
-
major,
|
321
|
-
minor,
|
322
|
-
progressInstance=None,
|
323
|
-
bForDemand=bForDemandDefault,
|
324
|
-
bBuildHidden=1,
|
325
|
-
):
|
326
|
-
"""Generate support for a type library.
|
327
|
-
|
328
|
-
Given the IID, LCID and version information for a type library, generate
|
329
|
-
and import the necessary support files.
|
330
|
-
|
331
|
-
Returns the Python module. No exceptions are caught.
|
332
|
-
|
333
|
-
Params
|
334
|
-
typelibCLSID -- IID of the type library.
|
335
|
-
major -- Integer major version.
|
336
|
-
minor -- Integer minor version.
|
337
|
-
lcid -- Integer LCID for the library.
|
338
|
-
progressInstance -- Instance to use as progress indicator, or None to
|
339
|
-
use the GUI progress bar.
|
340
|
-
"""
|
341
|
-
from . import makepy
|
342
|
-
|
343
|
-
makepy.GenerateFromTypeLibSpec(
|
344
|
-
(typelibCLSID, lcid, major, minor),
|
345
|
-
progressInstance=progressInstance,
|
346
|
-
bForDemand=bForDemand,
|
347
|
-
bBuildHidden=bBuildHidden,
|
348
|
-
)
|
349
|
-
return GetModuleForTypelib(typelibCLSID, lcid, major, minor)
|
350
|
-
|
351
|
-
|
352
|
-
def MakeModuleForTypelibInterface(
|
353
|
-
typelib_ob, progressInstance=None, bForDemand=bForDemandDefault, bBuildHidden=1
|
354
|
-
):
|
355
|
-
"""Generate support for a type library.
|
356
|
-
|
357
|
-
Given a PyITypeLib interface generate and import the necessary support files. This is useful
|
358
|
-
for getting makepy support for a typelibrary that is not registered - the caller can locate
|
359
|
-
and load the type library itself, rather than relying on COM to find it.
|
360
|
-
|
361
|
-
Returns the Python module.
|
362
|
-
|
363
|
-
Params
|
364
|
-
typelib_ob -- The type library itself
|
365
|
-
progressInstance -- Instance to use as progress indicator, or None to
|
366
|
-
use the GUI progress bar.
|
367
|
-
"""
|
368
|
-
from . import makepy
|
369
|
-
|
370
|
-
try:
|
371
|
-
makepy.GenerateFromTypeLibSpec(
|
372
|
-
typelib_ob,
|
373
|
-
progressInstance=progressInstance,
|
374
|
-
bForDemand=bForDemandDefault,
|
375
|
-
bBuildHidden=bBuildHidden,
|
376
|
-
)
|
377
|
-
except pywintypes.com_error:
|
378
|
-
return None
|
379
|
-
tla = typelib_ob.GetLibAttr()
|
380
|
-
guid = tla[0]
|
381
|
-
lcid = tla[1]
|
382
|
-
major = tla[3]
|
383
|
-
minor = tla[4]
|
384
|
-
return GetModuleForTypelib(guid, lcid, major, minor)
|
385
|
-
|
386
|
-
|
387
|
-
def EnsureModuleForTypelibInterface(
|
388
|
-
typelib_ob, progressInstance=None, bForDemand=bForDemandDefault, bBuildHidden=1
|
389
|
-
):
|
390
|
-
"""Check we have support for a type library, generating if not.
|
391
|
-
|
392
|
-
Given a PyITypeLib interface generate and import the necessary
|
393
|
-
support files if necessary. This is useful for getting makepy support
|
394
|
-
for a typelibrary that is not registered - the caller can locate and
|
395
|
-
load the type library itself, rather than relying on COM to find it.
|
396
|
-
|
397
|
-
Returns the Python module.
|
398
|
-
|
399
|
-
Params
|
400
|
-
typelib_ob -- The type library itself
|
401
|
-
progressInstance -- Instance to use as progress indicator, or None to
|
402
|
-
use the GUI progress bar.
|
403
|
-
"""
|
404
|
-
tla = typelib_ob.GetLibAttr()
|
405
|
-
guid = tla[0]
|
406
|
-
lcid = tla[1]
|
407
|
-
major = tla[3]
|
408
|
-
minor = tla[4]
|
409
|
-
|
410
|
-
# If demand generated, save the typelib interface away for later use
|
411
|
-
if bForDemand:
|
412
|
-
demandGeneratedTypeLibraries[(str(guid), lcid, major, minor)] = typelib_ob
|
413
|
-
|
414
|
-
try:
|
415
|
-
return GetModuleForTypelib(guid, lcid, major, minor)
|
416
|
-
except ImportError:
|
417
|
-
pass
|
418
|
-
# Generate it.
|
419
|
-
return MakeModuleForTypelibInterface(
|
420
|
-
typelib_ob, progressInstance, bForDemand, bBuildHidden
|
421
|
-
)
|
422
|
-
|
423
|
-
|
424
|
-
def ForgetAboutTypelibInterface(typelib_ob):
|
425
|
-
"""Drop any references to a typelib previously added with EnsureModuleForTypelibInterface and forDemand"""
|
426
|
-
tla = typelib_ob.GetLibAttr()
|
427
|
-
guid = tla[0]
|
428
|
-
lcid = tla[1]
|
429
|
-
major = tla[3]
|
430
|
-
minor = tla[4]
|
431
|
-
info = str(guid), lcid, major, minor
|
432
|
-
try:
|
433
|
-
del demandGeneratedTypeLibraries[info]
|
434
|
-
except KeyError:
|
435
|
-
# Not worth raising an exception - maybe they don't know we only remember for demand generated, etc.
|
436
|
-
print(
|
437
|
-
"ForgetAboutTypelibInterface:: Warning - type library with info {} is not being remembered!".format(
|
438
|
-
info
|
439
|
-
)
|
440
|
-
)
|
441
|
-
# and drop any version redirects to it
|
442
|
-
for key, val in versionRedirectMap.items():
|
443
|
-
if val == info:
|
444
|
-
del versionRedirectMap[key]
|
445
|
-
|
446
|
-
|
447
|
-
def EnsureModule(
|
448
|
-
typelibCLSID,
|
449
|
-
lcid,
|
450
|
-
major,
|
451
|
-
minor,
|
452
|
-
progressInstance=None,
|
453
|
-
bValidateFile=not is_readonly,
|
454
|
-
bForDemand=bForDemandDefault,
|
455
|
-
bBuildHidden=1,
|
456
|
-
):
|
457
|
-
"""Ensure Python support is loaded for a type library, generating if necessary.
|
458
|
-
|
459
|
-
Given the IID, LCID and version information for a type library, check and if
|
460
|
-
necessary (re)generate, then import the necessary support files. If we regenerate the file, there
|
461
|
-
is no way to totally snuff out all instances of the old module in Python, and thus we will regenerate the file more than necessary,
|
462
|
-
unless makepy/genpy is modified accordingly.
|
463
|
-
|
464
|
-
|
465
|
-
Returns the Python module. No exceptions are caught during the generate process.
|
466
|
-
|
467
|
-
Params
|
468
|
-
typelibCLSID -- IID of the type library.
|
469
|
-
major -- Integer major version.
|
470
|
-
minor -- Integer minor version
|
471
|
-
lcid -- Integer LCID for the library.
|
472
|
-
progressInstance -- Instance to use as progress indicator, or None to
|
473
|
-
use the GUI progress bar.
|
474
|
-
bValidateFile -- Whether or not to perform cache validation or not
|
475
|
-
bForDemand -- Should a complete generation happen now, or on demand?
|
476
|
-
bBuildHidden -- Should hidden members/attributes etc be generated?
|
477
|
-
"""
|
478
|
-
bReloadNeeded = 0
|
479
|
-
try:
|
480
|
-
try:
|
481
|
-
module = GetModuleForTypelib(typelibCLSID, lcid, major, minor)
|
482
|
-
except ImportError:
|
483
|
-
# If we get an ImportError
|
484
|
-
# We may still find a valid cache file under a different MinorVersion #
|
485
|
-
# (which windows will search out for us)
|
486
|
-
# print("Loading reg typelib", typelibCLSID, major, minor, lcid)
|
487
|
-
module = None
|
488
|
-
try:
|
489
|
-
tlbAttr = pythoncom.LoadRegTypeLib(
|
490
|
-
typelibCLSID, major, minor, lcid
|
491
|
-
).GetLibAttr()
|
492
|
-
# if the above line doesn't throw a pythoncom.com_error, check if
|
493
|
-
# it is actually a different lib than we requested, and if so, suck it in
|
494
|
-
if tlbAttr[1] != lcid or tlbAttr[4] != minor:
|
495
|
-
# print("Trying 2nd minor #", tlbAttr[1], tlbAttr[3], tlbAttr[4])
|
496
|
-
try:
|
497
|
-
module = GetModuleForTypelib(
|
498
|
-
typelibCLSID, tlbAttr[1], tlbAttr[3], tlbAttr[4]
|
499
|
-
)
|
500
|
-
except ImportError:
|
501
|
-
# We don't have a module, but we do have a better minor
|
502
|
-
# version - remember that.
|
503
|
-
minor = tlbAttr[4]
|
504
|
-
# else module remains None
|
505
|
-
except pythoncom.com_error:
|
506
|
-
# couldn't load any typelib - mod remains None
|
507
|
-
pass
|
508
|
-
if module is not None and bValidateFile:
|
509
|
-
assert not is_readonly, "Can't validate in a read-only gencache"
|
510
|
-
try:
|
511
|
-
typLibPath = pythoncom.QueryPathOfRegTypeLib(
|
512
|
-
typelibCLSID, major, minor, lcid
|
513
|
-
)
|
514
|
-
# windows seems to add an extra \0 (via the underlying BSTR)
|
515
|
-
# The mainwin toolkit does not add this erroneous \0
|
516
|
-
if typLibPath[-1] == "\0":
|
517
|
-
typLibPath = typLibPath[:-1]
|
518
|
-
suf = getattr(os.path, "supports_unicode_filenames", 0)
|
519
|
-
if not suf:
|
520
|
-
# can't pass unicode filenames directly - convert
|
521
|
-
try:
|
522
|
-
typLibPath = typLibPath.encode(sys.getfilesystemencoding())
|
523
|
-
except AttributeError: # no sys.getfilesystemencoding
|
524
|
-
typLibPath = str(typLibPath)
|
525
|
-
tlbAttributes = pythoncom.LoadRegTypeLib(
|
526
|
-
typelibCLSID, major, minor, lcid
|
527
|
-
).GetLibAttr()
|
528
|
-
except pythoncom.com_error:
|
529
|
-
# We have a module, but no type lib - we should still
|
530
|
-
# run with what we have though - the typelib may not be
|
531
|
-
# deployed here.
|
532
|
-
bValidateFile = 0
|
533
|
-
if module is not None and bValidateFile:
|
534
|
-
assert not is_readonly, "Can't validate in a read-only gencache"
|
535
|
-
filePathPrefix = "{}\\{}".format(
|
536
|
-
GetGeneratePath(),
|
537
|
-
GetGeneratedFileName(typelibCLSID, lcid, major, minor),
|
538
|
-
)
|
539
|
-
filePath = filePathPrefix + ".py"
|
540
|
-
filePathPyc = filePathPrefix + ".py"
|
541
|
-
if __debug__:
|
542
|
-
filePathPyc += "c"
|
543
|
-
else:
|
544
|
-
filePathPyc += "o"
|
545
|
-
# Verify that type library is up to date.
|
546
|
-
# If we have a differing MinorVersion or genpy has bumped versions, update the file
|
547
|
-
from . import genpy
|
548
|
-
|
549
|
-
if (
|
550
|
-
module.MinorVersion != tlbAttributes[4]
|
551
|
-
or genpy.makepy_version != module.makepy_version
|
552
|
-
):
|
553
|
-
# print(f"Version skew: {module.MinorVersion}, {tlbAttributes[4]}")
|
554
|
-
# try to erase the bad file from the cache
|
555
|
-
try:
|
556
|
-
os.unlink(filePath)
|
557
|
-
except OSError:
|
558
|
-
pass
|
559
|
-
try:
|
560
|
-
os.unlink(filePathPyc)
|
561
|
-
except OSError:
|
562
|
-
pass
|
563
|
-
if os.path.isdir(filePathPrefix):
|
564
|
-
import shutil
|
565
|
-
|
566
|
-
shutil.rmtree(filePathPrefix)
|
567
|
-
minor = tlbAttributes[4]
|
568
|
-
module = None
|
569
|
-
bReloadNeeded = 1
|
570
|
-
else:
|
571
|
-
minor = module.MinorVersion
|
572
|
-
filePathPrefix = "{}\\{}".format(
|
573
|
-
GetGeneratePath(),
|
574
|
-
GetGeneratedFileName(typelibCLSID, lcid, major, minor),
|
575
|
-
)
|
576
|
-
filePath = filePathPrefix + ".py"
|
577
|
-
filePathPyc = filePathPrefix + ".pyc"
|
578
|
-
# print("Trying py stat: ", filePath)
|
579
|
-
fModTimeSet = 0
|
580
|
-
try:
|
581
|
-
pyModTime = os.stat(filePath)[8]
|
582
|
-
fModTimeSet = 1
|
583
|
-
except OSError as e:
|
584
|
-
# If .py file fails, try .pyc file
|
585
|
-
# print("Trying pyc stat", filePathPyc)
|
586
|
-
try:
|
587
|
-
pyModTime = os.stat(filePathPyc)[8]
|
588
|
-
fModTimeSet = 1
|
589
|
-
except OSError as e:
|
590
|
-
pass
|
591
|
-
# print("Trying stat typelib", pyModTime)
|
592
|
-
# print(typLibPath)
|
593
|
-
typLibModTime = os.stat(typLibPath)[8]
|
594
|
-
if fModTimeSet and (typLibModTime > pyModTime):
|
595
|
-
bReloadNeeded = 1
|
596
|
-
module = None
|
597
|
-
except (ImportError, OSError):
|
598
|
-
module = None
|
599
|
-
if module is None:
|
600
|
-
# We need to build an item. If we are in a read-only cache, we
|
601
|
-
# can't/don't want to do this - so before giving up, check for
|
602
|
-
# a different minor version in our cache - according to COM, this is OK
|
603
|
-
if is_readonly:
|
604
|
-
key = str(typelibCLSID), lcid, major, minor
|
605
|
-
# If we have been asked before, get last result.
|
606
|
-
try:
|
607
|
-
return versionRedirectMap[key]
|
608
|
-
except KeyError:
|
609
|
-
pass
|
610
|
-
# Find other candidates.
|
611
|
-
items = []
|
612
|
-
for desc in GetGeneratedInfos():
|
613
|
-
if key[0] == desc[0] and key[1] == desc[1] and key[2] == desc[2]:
|
614
|
-
items.append(desc)
|
615
|
-
if items:
|
616
|
-
# Items are all identical, except for last tuple element
|
617
|
-
# We want the latest minor version we have - so just sort and grab last
|
618
|
-
items.sort()
|
619
|
-
new_minor = items[-1][3]
|
620
|
-
ret = GetModuleForTypelib(typelibCLSID, lcid, major, new_minor)
|
621
|
-
else:
|
622
|
-
ret = None
|
623
|
-
# remember and return
|
624
|
-
versionRedirectMap[key] = ret
|
625
|
-
return ret
|
626
|
-
# print("Rebuilding: ", major, minor)
|
627
|
-
module = MakeModuleForTypelib(
|
628
|
-
typelibCLSID,
|
629
|
-
lcid,
|
630
|
-
major,
|
631
|
-
minor,
|
632
|
-
progressInstance,
|
633
|
-
bForDemand=bForDemand,
|
634
|
-
bBuildHidden=bBuildHidden,
|
635
|
-
)
|
636
|
-
# If we replaced something, reload it
|
637
|
-
if bReloadNeeded:
|
638
|
-
module = reload(module)
|
639
|
-
AddModuleToCache(typelibCLSID, lcid, major, minor)
|
640
|
-
return module
|
641
|
-
|
642
|
-
|
643
|
-
def EnsureDispatch(
|
644
|
-
prog_id, bForDemand=1
|
645
|
-
): # New fn, so we default the new demand feature to on!
|
646
|
-
"""Given a COM prog_id, return an object that is using makepy support, building if necessary"""
|
647
|
-
disp = win32com.client.Dispatch(prog_id)
|
648
|
-
if not hasattr(disp, "CLSID"): # Eeek - no makepy support - try and build it.
|
649
|
-
try:
|
650
|
-
ti = disp._oleobj_.GetTypeInfo()
|
651
|
-
disp_clsid = ti.GetTypeAttr()[0]
|
652
|
-
tlb, index = ti.GetContainingTypeLib()
|
653
|
-
tla = tlb.GetLibAttr()
|
654
|
-
mod = EnsureModule(tla[0], tla[1], tla[3], tla[4], bForDemand=bForDemand)
|
655
|
-
GetModuleForCLSID(disp_clsid)
|
656
|
-
# Get the class from the module.
|
657
|
-
from . import CLSIDToClass
|
658
|
-
|
659
|
-
disp_class = CLSIDToClass.GetClass(str(disp_clsid))
|
660
|
-
disp = disp_class(disp._oleobj_)
|
661
|
-
except pythoncom.com_error:
|
662
|
-
raise TypeError(
|
663
|
-
"This COM object can not automate the makepy process - please run makepy manually for this object"
|
664
|
-
)
|
665
|
-
return disp
|
666
|
-
|
667
|
-
|
668
|
-
def AddModuleToCache(
|
669
|
-
typelibclsid, lcid, major, minor, verbose=1, bFlushNow=not is_readonly
|
670
|
-
):
|
671
|
-
"""Add a newly generated file to the cache dictionary."""
|
672
|
-
fname = GetGeneratedFileName(typelibclsid, lcid, major, minor)
|
673
|
-
mod = _GetModule(fname)
|
674
|
-
# if mod._in_gencache_ is already true, then we are reloading this
|
675
|
-
# module - this doesn't mean anything special though!
|
676
|
-
mod._in_gencache_ = 1
|
677
|
-
info = str(typelibclsid), lcid, major, minor
|
678
|
-
dict_modified = False
|
679
|
-
|
680
|
-
def SetTypelibForAllClsids(dict):
|
681
|
-
nonlocal dict_modified
|
682
|
-
for clsid in dict:
|
683
|
-
if clsidToTypelib.get(clsid) != info:
|
684
|
-
clsidToTypelib[clsid] = info
|
685
|
-
dict_modified = True
|
686
|
-
|
687
|
-
SetTypelibForAllClsids(mod.CLSIDToClassMap)
|
688
|
-
SetTypelibForAllClsids(mod.CLSIDToPackageMap)
|
689
|
-
SetTypelibForAllClsids(mod.VTablesToClassMap)
|
690
|
-
SetTypelibForAllClsids(mod.VTablesToPackageMap)
|
691
|
-
|
692
|
-
# If this lib was previously redirected, drop it
|
693
|
-
if info in versionRedirectMap:
|
694
|
-
del versionRedirectMap[info]
|
695
|
-
if bFlushNow and dict_modified:
|
696
|
-
_SaveDicts()
|
697
|
-
|
698
|
-
|
699
|
-
def GetGeneratedInfos():
|
700
|
-
zip_pos = win32com.__gen_path__.find(".zip\\")
|
701
|
-
if zip_pos >= 0:
|
702
|
-
import zipfile
|
703
|
-
|
704
|
-
zip_file = win32com.__gen_path__[: zip_pos + 4]
|
705
|
-
zip_path = win32com.__gen_path__[zip_pos + 5 :].replace("\\", "/")
|
706
|
-
zf = zipfile.ZipFile(zip_file)
|
707
|
-
infos = set()
|
708
|
-
for n in zf.namelist():
|
709
|
-
if not n.startswith(zip_path):
|
710
|
-
continue
|
711
|
-
base = n[len(zip_path) + 1 :].split("/")[0]
|
712
|
-
try:
|
713
|
-
iid, lcid, major, minor = base.split("x")
|
714
|
-
lcid = int(lcid)
|
715
|
-
major = int(major)
|
716
|
-
minor = int(minor)
|
717
|
-
iid = pywintypes.IID("{" + iid + "}")
|
718
|
-
except ValueError:
|
719
|
-
continue
|
720
|
-
except pywintypes.com_error:
|
721
|
-
# invalid IID
|
722
|
-
continue
|
723
|
-
infos.add((iid, lcid, major, minor))
|
724
|
-
zf.close()
|
725
|
-
return list(infos)
|
726
|
-
else:
|
727
|
-
# on the file system
|
728
|
-
files = glob.glob(win32com.__gen_path__ + "\\*")
|
729
|
-
ret = []
|
730
|
-
for file in files:
|
731
|
-
if not os.path.isdir(file) and not os.path.splitext(file)[1] == ".py":
|
732
|
-
continue
|
733
|
-
name = os.path.splitext(os.path.split(file)[1])[0]
|
734
|
-
try:
|
735
|
-
iid, lcid, major, minor = name.split("x")
|
736
|
-
iid = pywintypes.IID("{" + iid + "}")
|
737
|
-
lcid = int(lcid)
|
738
|
-
major = int(major)
|
739
|
-
minor = int(minor)
|
740
|
-
except ValueError:
|
741
|
-
continue
|
742
|
-
except pywintypes.com_error:
|
743
|
-
# invalid IID
|
744
|
-
continue
|
745
|
-
ret.append((iid, lcid, major, minor))
|
746
|
-
return ret
|
747
|
-
|
748
|
-
|
749
|
-
def _GetModule(fname):
|
750
|
-
"""Given the name of a module in the gen_py directory, import and return it."""
|
751
|
-
mod_name = "win32com.gen_py.%s" % fname
|
752
|
-
with ModuleMutex(fname):
|
753
|
-
__import__(mod_name)
|
754
|
-
return sys.modules[mod_name]
|
755
|
-
|
756
|
-
|
757
|
-
def Rebuild(verbose=1):
|
758
|
-
"""Rebuild the cache indexes from the file system."""
|
759
|
-
clsidToTypelib.clear()
|
760
|
-
infos = GetGeneratedInfos()
|
761
|
-
if verbose and len(infos): # Don't bother reporting this when directory is empty!
|
762
|
-
print("Rebuilding cache of generated files for COM support...")
|
763
|
-
for info in infos:
|
764
|
-
iid, lcid, major, minor = info
|
765
|
-
if verbose:
|
766
|
-
print("Checking", GetGeneratedFileName(*info))
|
767
|
-
try:
|
768
|
-
AddModuleToCache(iid, lcid, major, minor, verbose, 0)
|
769
|
-
except:
|
770
|
-
print(
|
771
|
-
"Could not add module {} - {}: {}".format(
|
772
|
-
info, sys.exc_info()[0], sys.exc_info()[1]
|
773
|
-
)
|
774
|
-
)
|
775
|
-
if verbose and len(infos): # Don't bother reporting this when directory is empty!
|
776
|
-
print("Done.")
|
777
|
-
_SaveDicts()
|
778
|
-
|
779
|
-
|
780
|
-
def _Dump():
|
781
|
-
print("Cache is in directory", win32com.__gen_path__)
|
782
|
-
# Build a unique dir
|
783
|
-
d = set(clsidToTypelib.values())
|
784
|
-
for typelibCLSID, lcid, major, minor in d:
|
785
|
-
mod = GetModuleForTypelib(typelibCLSID, lcid, major, minor)
|
786
|
-
print(f"{mod.__doc__} - {typelibCLSID}")
|
787
|
-
|
788
|
-
|
789
|
-
# Boot up
|
790
|
-
__init__()
|
791
|
-
|
792
|
-
|
793
|
-
def usage():
|
794
|
-
usageString = """\
|
795
|
-
Usage: gencache [-q] [-d] [-r]
|
796
|
-
|
797
|
-
-q - Quiet
|
798
|
-
-d - Dump the cache (typelibrary description and filename).
|
799
|
-
-r - Rebuild the cache dictionary from the existing .py files
|
800
|
-
"""
|
801
|
-
print(usageString)
|
802
|
-
sys.exit(1)
|
803
|
-
|
804
|
-
|
805
|
-
if __name__ == "__main__":
|
806
|
-
import getopt
|
807
|
-
|
808
|
-
try:
|
809
|
-
opts, args = getopt.getopt(sys.argv[1:], "qrd")
|
810
|
-
except getopt.error as message:
|
811
|
-
print(message)
|
812
|
-
usage()
|
813
|
-
|
814
|
-
# we only have options - complain about real args, or none at all!
|
815
|
-
if len(sys.argv) == 1 or args:
|
816
|
-
print(usage())
|
817
|
-
|
818
|
-
verbose = 1
|
819
|
-
for opt, val in opts:
|
820
|
-
if opt == "-d": # Dump
|
821
|
-
_Dump()
|
822
|
-
if opt == "-r":
|
823
|
-
Rebuild(verbose)
|
824
|
-
if opt == "-q":
|
825
|
-
verbose = 0
|