py2docfx 0.1.15rc2025477__py3-none-any.whl → 0.1.16.dev2051338__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 +21 -34
- py2docfx/docfx_yaml/tests/test_method_arguments.py +1 -7
- py2docfx/docfx_yaml/tests/test_process_doctree.py +120 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_core_metadata.py +21 -5
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/_msvccompiler.py +13 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/ccompiler.py +5 -2
- 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 +49 -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 +168 -51
- 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/config/test_setupcfg.py +42 -29
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/integration/test_pip_install_sdist.py +1 -1
- 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/pyasn1_modules/__init__.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_core_metadata.py +21 -5
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/_msvccompiler.py +13 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/ccompiler.py +5 -2
- 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 +49 -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 +168 -51
- 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/config/test_setupcfg.py +42 -29
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/integration/test_pip_install_sdist.py +1 -1
- 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/venv/venv1/Lib/site-packages/typing_extensions.py +999 -74
- {py2docfx-0.1.15rc2025477.dist-info → py2docfx-0.1.16.dev2051338.dist-info}/METADATA +1 -1
- {py2docfx-0.1.15rc2025477.dist-info → py2docfx-0.1.16.dev2051338.dist-info}/RECORD +141 -596
- 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.15rc2025477.dist-info → py2docfx-0.1.16.dev2051338.dist-info}/WHEEL +0 -0
- {py2docfx-0.1.15rc2025477.dist-info → py2docfx-0.1.16.dev2051338.dist-info}/top_level.txt +0 -0
@@ -1,677 +0,0 @@
|
|
1
|
-
"""Utilities for registering objects.
|
2
|
-
|
3
|
-
This module contains utility functions to register Python objects as
|
4
|
-
valid COM Servers. The RegisterServer function provides all information
|
5
|
-
necessary to allow the COM framework to respond to a request for a COM object,
|
6
|
-
construct the necessary Python object, and dispatch COM events.
|
7
|
-
|
8
|
-
"""
|
9
|
-
|
10
|
-
import os
|
11
|
-
import sys
|
12
|
-
|
13
|
-
import pythoncom
|
14
|
-
import win32api
|
15
|
-
import win32con
|
16
|
-
import winerror
|
17
|
-
|
18
|
-
CATID_PythonCOMServer = "{B3EF80D0-68E2-11D0-A689-00C04FD658FF}"
|
19
|
-
|
20
|
-
|
21
|
-
def _set_subkeys(keyName, valueDict, base=win32con.HKEY_CLASSES_ROOT):
|
22
|
-
hkey = win32api.RegCreateKey(base, keyName)
|
23
|
-
try:
|
24
|
-
for key, value in valueDict.items():
|
25
|
-
win32api.RegSetValueEx(hkey, key, None, win32con.REG_SZ, value)
|
26
|
-
finally:
|
27
|
-
win32api.RegCloseKey(hkey)
|
28
|
-
|
29
|
-
|
30
|
-
def _set_string(path, value, base=win32con.HKEY_CLASSES_ROOT):
|
31
|
-
"Set a string value in the registry."
|
32
|
-
|
33
|
-
win32api.RegSetValue(base, path, win32con.REG_SZ, value)
|
34
|
-
|
35
|
-
|
36
|
-
def _get_string(path, base=win32con.HKEY_CLASSES_ROOT):
|
37
|
-
"Get a string value from the registry."
|
38
|
-
|
39
|
-
try:
|
40
|
-
return win32api.RegQueryValue(base, path)
|
41
|
-
except win32api.error:
|
42
|
-
return None
|
43
|
-
|
44
|
-
|
45
|
-
def _remove_key(path, base=win32con.HKEY_CLASSES_ROOT):
|
46
|
-
"Remove a string from the registry."
|
47
|
-
|
48
|
-
try:
|
49
|
-
win32api.RegDeleteKey(base, path)
|
50
|
-
except win32api.error as xxx_todo_changeme1:
|
51
|
-
(code, fn, msg) = xxx_todo_changeme1.args
|
52
|
-
if code != winerror.ERROR_FILE_NOT_FOUND:
|
53
|
-
raise win32api.error(code, fn, msg)
|
54
|
-
|
55
|
-
|
56
|
-
def recurse_delete_key(path, base=win32con.HKEY_CLASSES_ROOT):
|
57
|
-
"""Recursively delete registry keys.
|
58
|
-
|
59
|
-
This is needed since you can't blast a key when subkeys exist.
|
60
|
-
"""
|
61
|
-
try:
|
62
|
-
h = win32api.RegOpenKey(base, path)
|
63
|
-
except win32api.error as xxx_todo_changeme2:
|
64
|
-
(code, fn, msg) = xxx_todo_changeme2.args
|
65
|
-
if code != winerror.ERROR_FILE_NOT_FOUND:
|
66
|
-
raise win32api.error(code, fn, msg)
|
67
|
-
else:
|
68
|
-
# parent key found and opened successfully. do some work, making sure
|
69
|
-
# to always close the thing (error or no).
|
70
|
-
try:
|
71
|
-
# remove all of the subkeys
|
72
|
-
while 1:
|
73
|
-
try:
|
74
|
-
subkeyname = win32api.RegEnumKey(h, 0)
|
75
|
-
except win32api.error as xxx_todo_changeme:
|
76
|
-
(code, fn, msg) = xxx_todo_changeme.args
|
77
|
-
if code != winerror.ERROR_NO_MORE_ITEMS:
|
78
|
-
raise win32api.error(code, fn, msg)
|
79
|
-
break
|
80
|
-
recurse_delete_key(path + "\\" + subkeyname, base)
|
81
|
-
|
82
|
-
# remove the parent key
|
83
|
-
_remove_key(path, base)
|
84
|
-
finally:
|
85
|
-
win32api.RegCloseKey(h)
|
86
|
-
|
87
|
-
|
88
|
-
def _cat_registrar():
|
89
|
-
return pythoncom.CoCreateInstance(
|
90
|
-
pythoncom.CLSID_StdComponentCategoriesMgr,
|
91
|
-
None,
|
92
|
-
pythoncom.CLSCTX_INPROC_SERVER,
|
93
|
-
pythoncom.IID_ICatRegister,
|
94
|
-
)
|
95
|
-
|
96
|
-
|
97
|
-
def _find_localserver_exe(mustfind):
|
98
|
-
if sys.platform != "win32":
|
99
|
-
return sys.executable
|
100
|
-
if os.path.splitext(os.path.basename(pythoncom.__file__))[0].endswith("_d"):
|
101
|
-
exeBaseName = "pythonw_d.exe"
|
102
|
-
else:
|
103
|
-
exeBaseName = "pythonw.exe"
|
104
|
-
# First see if in the same directory as this .EXE
|
105
|
-
exeName = os.path.join(os.path.split(sys.executable)[0], exeBaseName)
|
106
|
-
if not os.path.exists(exeName):
|
107
|
-
# See if in our sys.prefix directory
|
108
|
-
exeName = os.path.join(sys.prefix, exeBaseName)
|
109
|
-
if not os.path.exists(exeName):
|
110
|
-
# See if in our sys.prefix/pcbuild directory (for developers)
|
111
|
-
if "64 bit" in sys.version:
|
112
|
-
exeName = os.path.join(sys.prefix, "PCbuild", "amd64", exeBaseName)
|
113
|
-
else:
|
114
|
-
exeName = os.path.join(sys.prefix, "PCbuild", exeBaseName)
|
115
|
-
if not os.path.exists(exeName):
|
116
|
-
# See if the registry has some info.
|
117
|
-
try:
|
118
|
-
key = "SOFTWARE\\Python\\PythonCore\\%s\\InstallPath" % sys.winver
|
119
|
-
path = win32api.RegQueryValue(win32con.HKEY_LOCAL_MACHINE, key)
|
120
|
-
exeName = os.path.join(path, exeBaseName)
|
121
|
-
except (AttributeError, win32api.error):
|
122
|
-
pass
|
123
|
-
if not os.path.exists(exeName):
|
124
|
-
if mustfind:
|
125
|
-
raise RuntimeError("Can not locate the program '%s'" % exeBaseName)
|
126
|
-
return None
|
127
|
-
return exeName
|
128
|
-
|
129
|
-
|
130
|
-
def _find_localserver_module():
|
131
|
-
import win32com.server
|
132
|
-
|
133
|
-
path = next(iter(win32com.server.__path__))
|
134
|
-
baseName = "localserver"
|
135
|
-
pyfile = os.path.join(path, baseName + ".py")
|
136
|
-
try:
|
137
|
-
os.stat(pyfile)
|
138
|
-
except OSError:
|
139
|
-
# See if we have a compiled extension
|
140
|
-
if __debug__:
|
141
|
-
ext = ".pyc"
|
142
|
-
else:
|
143
|
-
ext = ".pyo"
|
144
|
-
pyfile = os.path.join(path, baseName + ext)
|
145
|
-
try:
|
146
|
-
os.stat(pyfile)
|
147
|
-
except OSError:
|
148
|
-
raise RuntimeError(
|
149
|
-
"Can not locate the Python module 'win32com.server.%s'" % baseName
|
150
|
-
)
|
151
|
-
return pyfile
|
152
|
-
|
153
|
-
|
154
|
-
def RegisterServer(
|
155
|
-
clsid,
|
156
|
-
pythonInstString=None,
|
157
|
-
desc=None,
|
158
|
-
progID=None,
|
159
|
-
verProgID=None,
|
160
|
-
defIcon=None,
|
161
|
-
threadingModel="both",
|
162
|
-
policy=None,
|
163
|
-
catids=[],
|
164
|
-
other={},
|
165
|
-
addPyComCat=None,
|
166
|
-
dispatcher=None,
|
167
|
-
clsctx=None,
|
168
|
-
addnPath=None,
|
169
|
-
):
|
170
|
-
"""Registers a Python object as a COM Server. This enters almost all necessary
|
171
|
-
information in the system registry, allowing COM to use the object.
|
172
|
-
|
173
|
-
clsid -- The (unique) CLSID of the server.
|
174
|
-
pythonInstString -- A string holding the instance name that will be created
|
175
|
-
whenever COM requests a new object.
|
176
|
-
desc -- The description of the COM object.
|
177
|
-
progID -- The user name of this object (eg, Word.Document)
|
178
|
-
verProgId -- The user name of this version's implementation (eg Word.6.Document)
|
179
|
-
defIcon -- The default icon for the object.
|
180
|
-
threadingModel -- The threading model this object supports.
|
181
|
-
policy -- The policy to use when creating this object.
|
182
|
-
catids -- A list of category ID's this object belongs in.
|
183
|
-
other -- A dictionary of extra items to be registered.
|
184
|
-
addPyComCat -- A flag indicating if the object should be added to the list
|
185
|
-
of Python servers installed on the machine. If None (the default)
|
186
|
-
then it will be registered when running from python source, but
|
187
|
-
not registered if running in a frozen environment.
|
188
|
-
dispatcher -- The dispatcher to use when creating this object.
|
189
|
-
clsctx -- One of the CLSCTX_* constants.
|
190
|
-
addnPath -- An additional path the COM framework will add to sys.path
|
191
|
-
before attempting to create the object.
|
192
|
-
"""
|
193
|
-
|
194
|
-
### backwards-compat check
|
195
|
-
### Certain policies do not require a "class name", just the policy itself.
|
196
|
-
if not pythonInstString and not policy:
|
197
|
-
raise TypeError(
|
198
|
-
"You must specify either the Python Class or Python Policy which implement the COM object."
|
199
|
-
)
|
200
|
-
|
201
|
-
keyNameRoot = "CLSID\\%s" % str(clsid)
|
202
|
-
_set_string(keyNameRoot, desc)
|
203
|
-
|
204
|
-
# Also register as an "Application" so DCOM etc all see us.
|
205
|
-
_set_string("AppID\\%s" % clsid, progID)
|
206
|
-
# Depending on contexts requested, register the specified server type.
|
207
|
-
# Set default clsctx.
|
208
|
-
if not clsctx:
|
209
|
-
clsctx = pythoncom.CLSCTX_INPROC_SERVER | pythoncom.CLSCTX_LOCAL_SERVER
|
210
|
-
# And if we are frozen, ignore the ones that don't make sense in this
|
211
|
-
# context.
|
212
|
-
if pythoncom.frozen:
|
213
|
-
assert (
|
214
|
-
sys.frozen
|
215
|
-
), "pythoncom is frozen, but sys.frozen is not set - don't know the context!"
|
216
|
-
if sys.frozen == "dll":
|
217
|
-
clsctx &= pythoncom.CLSCTX_INPROC_SERVER
|
218
|
-
else:
|
219
|
-
clsctx &= pythoncom.CLSCTX_LOCAL_SERVER
|
220
|
-
# Now setup based on the clsctx left over.
|
221
|
-
if clsctx & pythoncom.CLSCTX_INPROC_SERVER:
|
222
|
-
# get the module to use for registration.
|
223
|
-
# nod to Gordon's installer - if sys.frozen and sys.frozendllhandle
|
224
|
-
# exist, then we are being registered via a DLL - use this DLL as the
|
225
|
-
# file name.
|
226
|
-
if pythoncom.frozen:
|
227
|
-
if hasattr(sys, "frozendllhandle"):
|
228
|
-
dllName = win32api.GetModuleFileName(sys.frozendllhandle)
|
229
|
-
else:
|
230
|
-
raise RuntimeError(
|
231
|
-
"We appear to have a frozen DLL, but I don't know the DLL to use"
|
232
|
-
)
|
233
|
-
else:
|
234
|
-
# Normal case - running from .py file, so register pythoncom's DLL.
|
235
|
-
# Although now we prefer a 'loader' DLL if it exists to avoid some
|
236
|
-
# manifest issues (the 'loader' DLL has a manifest, but pythoncom does not)
|
237
|
-
pythoncom_dir = os.path.dirname(pythoncom.__file__)
|
238
|
-
suffix = (
|
239
|
-
"_d"
|
240
|
-
if os.path.splitext(os.path.basename(pythoncom.__file__))[0].endswith(
|
241
|
-
"_d"
|
242
|
-
)
|
243
|
-
else ""
|
244
|
-
)
|
245
|
-
# Always register with the full path to the DLLs.
|
246
|
-
loadername = os.path.join(
|
247
|
-
pythoncom_dir,
|
248
|
-
"pythoncomloader%d%d%s.dll"
|
249
|
-
% (sys.version_info.major, sys.version_info.minor, suffix),
|
250
|
-
)
|
251
|
-
dllName = loadername if os.path.isfile(loadername) else pythoncom.__file__
|
252
|
-
|
253
|
-
_set_subkeys(
|
254
|
-
keyNameRoot + "\\InprocServer32",
|
255
|
-
{
|
256
|
-
None: dllName,
|
257
|
-
"ThreadingModel": threadingModel,
|
258
|
-
},
|
259
|
-
)
|
260
|
-
else: # Remove any old InProcServer32 registrations
|
261
|
-
_remove_key(keyNameRoot + "\\InprocServer32")
|
262
|
-
|
263
|
-
if clsctx & pythoncom.CLSCTX_LOCAL_SERVER:
|
264
|
-
if pythoncom.frozen:
|
265
|
-
# If we are frozen, we write "{exe} /Automate", just
|
266
|
-
# like "normal" .EXEs do
|
267
|
-
exeName = win32api.GetShortPathName(sys.executable)
|
268
|
-
command = f"{exeName} /Automate"
|
269
|
-
else:
|
270
|
-
# Running from .py sources - we need to write
|
271
|
-
# 'python.exe win32com\server\localserver.py {clsid}"
|
272
|
-
exeName = _find_localserver_exe(1)
|
273
|
-
exeName = win32api.GetShortPathName(exeName)
|
274
|
-
pyfile = _find_localserver_module()
|
275
|
-
command = f'{exeName} "{pyfile}" {clsid}'
|
276
|
-
_set_string(keyNameRoot + "\\LocalServer32", command)
|
277
|
-
else: # Remove any old LocalServer32 registrations
|
278
|
-
_remove_key(keyNameRoot + "\\LocalServer32")
|
279
|
-
|
280
|
-
if pythonInstString:
|
281
|
-
_set_string(keyNameRoot + "\\PythonCOM", pythonInstString)
|
282
|
-
else:
|
283
|
-
_remove_key(keyNameRoot + "\\PythonCOM")
|
284
|
-
if policy:
|
285
|
-
_set_string(keyNameRoot + "\\PythonCOMPolicy", policy)
|
286
|
-
else:
|
287
|
-
_remove_key(keyNameRoot + "\\PythonCOMPolicy")
|
288
|
-
|
289
|
-
if dispatcher:
|
290
|
-
_set_string(keyNameRoot + "\\PythonCOMDispatcher", dispatcher)
|
291
|
-
else:
|
292
|
-
_remove_key(keyNameRoot + "\\PythonCOMDispatcher")
|
293
|
-
|
294
|
-
if defIcon:
|
295
|
-
_set_string(keyNameRoot + "\\DefaultIcon", defIcon)
|
296
|
-
else:
|
297
|
-
_remove_key(keyNameRoot + "\\DefaultIcon")
|
298
|
-
|
299
|
-
if addnPath:
|
300
|
-
_set_string(keyNameRoot + "\\PythonCOMPath", addnPath)
|
301
|
-
else:
|
302
|
-
_remove_key(keyNameRoot + "\\PythonCOMPath")
|
303
|
-
|
304
|
-
if addPyComCat is None:
|
305
|
-
addPyComCat = pythoncom.frozen == 0
|
306
|
-
if addPyComCat:
|
307
|
-
catids = catids + [CATID_PythonCOMServer]
|
308
|
-
|
309
|
-
# Set up the implemented categories
|
310
|
-
if catids:
|
311
|
-
regCat = _cat_registrar()
|
312
|
-
regCat.RegisterClassImplCategories(clsid, catids)
|
313
|
-
|
314
|
-
# set up any other reg values they might have
|
315
|
-
if other:
|
316
|
-
for key, value in other.items():
|
317
|
-
_set_string(keyNameRoot + "\\" + key, value)
|
318
|
-
|
319
|
-
if progID:
|
320
|
-
# set the progID as the most specific that was given to us
|
321
|
-
if verProgID:
|
322
|
-
_set_string(keyNameRoot + "\\ProgID", verProgID)
|
323
|
-
else:
|
324
|
-
_set_string(keyNameRoot + "\\ProgID", progID)
|
325
|
-
|
326
|
-
# Set up the root entries - version independent.
|
327
|
-
if desc:
|
328
|
-
_set_string(progID, desc)
|
329
|
-
_set_string(progID + "\\CLSID", str(clsid))
|
330
|
-
|
331
|
-
# Set up the root entries - version dependent.
|
332
|
-
if verProgID:
|
333
|
-
# point from independent to the current version
|
334
|
-
_set_string(progID + "\\CurVer", verProgID)
|
335
|
-
|
336
|
-
# point to the version-independent one
|
337
|
-
_set_string(keyNameRoot + "\\VersionIndependentProgID", progID)
|
338
|
-
|
339
|
-
# set up the versioned progID
|
340
|
-
if desc:
|
341
|
-
_set_string(verProgID, desc)
|
342
|
-
_set_string(verProgID + "\\CLSID", str(clsid))
|
343
|
-
|
344
|
-
|
345
|
-
def GetUnregisterServerKeys(clsid, progID=None, verProgID=None, customKeys=None):
|
346
|
-
"""Given a server, return a list of of ("key", root), which are keys recursively
|
347
|
-
and uncondtionally deleted at unregister or uninstall time.
|
348
|
-
"""
|
349
|
-
# remove the main CLSID registration
|
350
|
-
ret = [("CLSID\\%s" % str(clsid), win32con.HKEY_CLASSES_ROOT)]
|
351
|
-
# remove the versioned ProgID registration
|
352
|
-
if verProgID:
|
353
|
-
ret.append((verProgID, win32con.HKEY_CLASSES_ROOT))
|
354
|
-
# blow away the independent ProgID. we can't leave it since we just
|
355
|
-
# torched the class.
|
356
|
-
### could potentially check the CLSID... ?
|
357
|
-
if progID:
|
358
|
-
ret.append((progID, win32con.HKEY_CLASSES_ROOT))
|
359
|
-
# The DCOM config tool may write settings to the AppID key for our CLSID
|
360
|
-
ret.append(("AppID\\%s" % str(clsid), win32con.HKEY_CLASSES_ROOT))
|
361
|
-
# Any custom keys?
|
362
|
-
if customKeys:
|
363
|
-
ret.extend(customKeys)
|
364
|
-
|
365
|
-
return ret
|
366
|
-
|
367
|
-
|
368
|
-
def UnregisterServer(clsid, progID=None, verProgID=None, customKeys=None):
|
369
|
-
"""Unregisters a Python COM server."""
|
370
|
-
|
371
|
-
for args in GetUnregisterServerKeys(clsid, progID, verProgID, customKeys):
|
372
|
-
recurse_delete_key(*args)
|
373
|
-
|
374
|
-
### it might be nice at some point to "roll back" the independent ProgID
|
375
|
-
### to an earlier version if one exists, and just blowing away the
|
376
|
-
### specified version of the ProgID (and its corresponding CLSID)
|
377
|
-
### another time, though...
|
378
|
-
|
379
|
-
### NOTE: ATL simply blows away the above three keys without the
|
380
|
-
### potential checks that I describe. Assuming that defines the
|
381
|
-
### "standard" then we have no additional changes necessary.
|
382
|
-
|
383
|
-
|
384
|
-
def GetRegisteredServerOption(clsid, optionName):
|
385
|
-
"""Given a CLSID for a server and option name, return the option value"""
|
386
|
-
keyNameRoot = f"CLSID\\{clsid}\\{optionName}"
|
387
|
-
return _get_string(keyNameRoot)
|
388
|
-
|
389
|
-
|
390
|
-
def _get(ob, attr, default=None):
|
391
|
-
try:
|
392
|
-
return getattr(ob, attr)
|
393
|
-
except AttributeError:
|
394
|
-
pass
|
395
|
-
# look down sub-classes
|
396
|
-
try:
|
397
|
-
bases = ob.__bases__
|
398
|
-
except AttributeError:
|
399
|
-
# ob is not a class - no probs.
|
400
|
-
return default
|
401
|
-
for base in bases:
|
402
|
-
val = _get(base, attr, None)
|
403
|
-
if val is not None:
|
404
|
-
return val
|
405
|
-
return default
|
406
|
-
|
407
|
-
|
408
|
-
def RegisterClasses(*classes, **flags):
|
409
|
-
quiet = "quiet" in flags and flags["quiet"]
|
410
|
-
debugging = "debug" in flags and flags["debug"]
|
411
|
-
for cls in classes:
|
412
|
-
clsid = cls._reg_clsid_
|
413
|
-
progID = _get(cls, "_reg_progid_")
|
414
|
-
desc = _get(cls, "_reg_desc_", progID)
|
415
|
-
spec = _get(cls, "_reg_class_spec_")
|
416
|
-
verProgID = _get(cls, "_reg_verprogid_")
|
417
|
-
defIcon = _get(cls, "_reg_icon_")
|
418
|
-
threadingModel = _get(cls, "_reg_threading_", "both")
|
419
|
-
catids = _get(cls, "_reg_catids_", [])
|
420
|
-
options = _get(cls, "_reg_options_", {})
|
421
|
-
policySpec = _get(cls, "_reg_policy_spec_")
|
422
|
-
clsctx = _get(cls, "_reg_clsctx_")
|
423
|
-
tlb_filename = _get(cls, "_reg_typelib_filename_")
|
424
|
-
# default to being a COM category only when not frozen.
|
425
|
-
addPyComCat = not _get(cls, "_reg_disable_pycomcat_", pythoncom.frozen != 0)
|
426
|
-
addnPath = None
|
427
|
-
if debugging:
|
428
|
-
# If the class has a debugging dispatcher specified, use it, otherwise
|
429
|
-
# use our default dispatcher.
|
430
|
-
dispatcherSpec = _get(cls, "_reg_debug_dispatcher_spec_")
|
431
|
-
if dispatcherSpec is None:
|
432
|
-
dispatcherSpec = "win32com.server.dispatcher.DefaultDebugDispatcher"
|
433
|
-
# And remember the debugging flag as servers may wish to use it at runtime.
|
434
|
-
debuggingDesc = "(for debugging)"
|
435
|
-
options["Debugging"] = "1"
|
436
|
-
else:
|
437
|
-
dispatcherSpec = _get(cls, "_reg_dispatcher_spec_")
|
438
|
-
debuggingDesc = ""
|
439
|
-
options["Debugging"] = "0"
|
440
|
-
|
441
|
-
if spec is None:
|
442
|
-
moduleName = cls.__module__
|
443
|
-
if moduleName == "__main__":
|
444
|
-
# Use argv[0] to determine the module name.
|
445
|
-
try:
|
446
|
-
# Use the win32api to find the case-sensitive name
|
447
|
-
moduleName = os.path.splitext(
|
448
|
-
win32api.FindFiles(sys.argv[0])[0][8]
|
449
|
-
)[0]
|
450
|
-
except (IndexError, win32api.error):
|
451
|
-
# Can't find the script file - the user must explicitly set the _reg_... attribute.
|
452
|
-
raise TypeError(
|
453
|
-
"Can't locate the script hosting the COM object - please set _reg_class_spec_ in your object"
|
454
|
-
)
|
455
|
-
|
456
|
-
spec = moduleName + "." + cls.__name__
|
457
|
-
# Frozen apps don't need their directory on sys.path
|
458
|
-
if not pythoncom.frozen:
|
459
|
-
scriptDir = os.path.split(sys.argv[0])[0]
|
460
|
-
if not scriptDir:
|
461
|
-
scriptDir = "."
|
462
|
-
addnPath = win32api.GetFullPathName(scriptDir)
|
463
|
-
|
464
|
-
RegisterServer(
|
465
|
-
clsid,
|
466
|
-
spec,
|
467
|
-
desc,
|
468
|
-
progID,
|
469
|
-
verProgID,
|
470
|
-
defIcon,
|
471
|
-
threadingModel,
|
472
|
-
policySpec,
|
473
|
-
catids,
|
474
|
-
options,
|
475
|
-
addPyComCat,
|
476
|
-
dispatcherSpec,
|
477
|
-
clsctx,
|
478
|
-
addnPath,
|
479
|
-
)
|
480
|
-
if not quiet:
|
481
|
-
print("Registered:", progID or spec, debuggingDesc)
|
482
|
-
# Register the typelibrary
|
483
|
-
if tlb_filename:
|
484
|
-
tlb_filename = os.path.abspath(tlb_filename)
|
485
|
-
typelib = pythoncom.LoadTypeLib(tlb_filename)
|
486
|
-
pythoncom.RegisterTypeLib(typelib, tlb_filename)
|
487
|
-
if not quiet:
|
488
|
-
print("Registered type library:", tlb_filename)
|
489
|
-
extra = flags.get("finalize_register")
|
490
|
-
if extra:
|
491
|
-
extra()
|
492
|
-
|
493
|
-
|
494
|
-
def UnregisterClasses(*classes, **flags):
|
495
|
-
quiet = "quiet" in flags and flags["quiet"]
|
496
|
-
for cls in classes:
|
497
|
-
clsid = cls._reg_clsid_
|
498
|
-
progID = _get(cls, "_reg_progid_")
|
499
|
-
verProgID = _get(cls, "_reg_verprogid_")
|
500
|
-
customKeys = _get(cls, "_reg_remove_keys_")
|
501
|
-
unregister_typelib = _get(cls, "_reg_typelib_filename_") is not None
|
502
|
-
|
503
|
-
UnregisterServer(clsid, progID, verProgID, customKeys)
|
504
|
-
if not quiet:
|
505
|
-
print("Unregistered:", progID or str(clsid))
|
506
|
-
if unregister_typelib:
|
507
|
-
tlb_guid = _get(cls, "_typelib_guid_")
|
508
|
-
if tlb_guid is None:
|
509
|
-
# I guess I could load the typelib, but they need the GUID anyway.
|
510
|
-
print("Have typelib filename, but no GUID - can't unregister")
|
511
|
-
else:
|
512
|
-
major, minor = _get(cls, "_typelib_version_", (1, 0))
|
513
|
-
lcid = _get(cls, "_typelib_lcid_", 0)
|
514
|
-
try:
|
515
|
-
pythoncom.UnRegisterTypeLib(tlb_guid, major, minor, lcid)
|
516
|
-
if not quiet:
|
517
|
-
print("Unregistered type library")
|
518
|
-
except pythoncom.com_error:
|
519
|
-
pass
|
520
|
-
|
521
|
-
extra = flags.get("finalize_unregister")
|
522
|
-
if extra:
|
523
|
-
extra()
|
524
|
-
|
525
|
-
|
526
|
-
# Unregister info is for installers or external uninstallers.
|
527
|
-
# The WISE installer, for example firstly registers the COM server,
|
528
|
-
# then queries for the Unregister info, appending it to its
|
529
|
-
# install log. Uninstalling the package will uninstall the server.
|
530
|
-
def UnregisterInfoClasses(*classes, **flags):
|
531
|
-
ret = []
|
532
|
-
for cls in classes:
|
533
|
-
clsid = cls._reg_clsid_
|
534
|
-
progID = _get(cls, "_reg_progid_")
|
535
|
-
verProgID = _get(cls, "_reg_verprogid_")
|
536
|
-
customKeys = _get(cls, "_reg_remove_keys_")
|
537
|
-
|
538
|
-
ret.extend(GetUnregisterServerKeys(clsid, progID, verProgID, customKeys))
|
539
|
-
return ret
|
540
|
-
|
541
|
-
|
542
|
-
# Attempt to 're-execute' our current process with elevation.
|
543
|
-
def ReExecuteElevated(flags):
|
544
|
-
import tempfile
|
545
|
-
|
546
|
-
import win32console
|
547
|
-
import win32event # we've already checked we are running XP above
|
548
|
-
import win32process
|
549
|
-
from win32com.shell import shellcon
|
550
|
-
from win32com.shell.shell import ShellExecuteEx
|
551
|
-
|
552
|
-
if not flags["quiet"]:
|
553
|
-
print("Requesting elevation and retrying...")
|
554
|
-
new_params = " ".join(['"' + a + '"' for a in sys.argv])
|
555
|
-
# If we aren't already in unattended mode, we want our sub-process to
|
556
|
-
# be.
|
557
|
-
if not flags["unattended"]:
|
558
|
-
new_params += " --unattended"
|
559
|
-
# specifying the parent means the dialog is centered over our window,
|
560
|
-
# which is a good usability clue.
|
561
|
-
# hwnd is unlikely on the command-line, but flags may come from elsewhere
|
562
|
-
try:
|
563
|
-
hwnd = flags.get("hwnd", win32console.GetConsoleWindow())
|
564
|
-
except win32console.error:
|
565
|
-
hwnd = 0
|
566
|
-
# Redirect output so we give the user some clue what went wrong. This
|
567
|
-
# also means we need to use COMSPEC. However, the "current directory"
|
568
|
-
# appears to end up ignored - so we execute things via a temp batch file.
|
569
|
-
tempbase = tempfile.mktemp("pycomserverreg")
|
570
|
-
outfile = tempbase + ".out"
|
571
|
-
batfile = tempbase + ".bat"
|
572
|
-
|
573
|
-
# If registering from pythonwin, need to run python console instead since
|
574
|
-
# pythonwin will just open script for editting
|
575
|
-
current_exe = os.path.split(sys.executable)[1].lower()
|
576
|
-
exe_to_run = None
|
577
|
-
if current_exe == "pythonwin.exe":
|
578
|
-
exe_to_run = os.path.join(sys.prefix, "python.exe")
|
579
|
-
elif current_exe == "pythonwin_d.exe":
|
580
|
-
exe_to_run = os.path.join(sys.prefix, "python_d.exe")
|
581
|
-
if not exe_to_run or not os.path.exists(exe_to_run):
|
582
|
-
exe_to_run = sys.executable
|
583
|
-
|
584
|
-
try:
|
585
|
-
batf = open(batfile, "w")
|
586
|
-
try:
|
587
|
-
cwd = os.getcwd()
|
588
|
-
print("@echo off", file=batf)
|
589
|
-
# nothing is 'inherited' by the elevated process, including the
|
590
|
-
# environment. I wonder if we need to set more?
|
591
|
-
print("set PYTHONPATH=%s" % os.environ.get("PYTHONPATH", ""), file=batf)
|
592
|
-
# may be on a different drive - select that before attempting to CD.
|
593
|
-
print(os.path.splitdrive(cwd)[0], file=batf)
|
594
|
-
print('cd "%s"' % os.getcwd(), file=batf)
|
595
|
-
print(
|
596
|
-
'{} {} > "{}" 2>&1'.format(
|
597
|
-
win32api.GetShortPathName(exe_to_run), new_params, outfile
|
598
|
-
),
|
599
|
-
file=batf,
|
600
|
-
)
|
601
|
-
finally:
|
602
|
-
batf.close()
|
603
|
-
executable = os.environ.get("COMSPEC", "cmd.exe")
|
604
|
-
rc = ShellExecuteEx(
|
605
|
-
hwnd=hwnd,
|
606
|
-
fMask=shellcon.SEE_MASK_NOCLOSEPROCESS,
|
607
|
-
lpVerb="runas",
|
608
|
-
lpFile=executable,
|
609
|
-
lpParameters='/C "%s"' % batfile,
|
610
|
-
nShow=win32con.SW_SHOW,
|
611
|
-
)
|
612
|
-
hproc = rc["hProcess"]
|
613
|
-
win32event.WaitForSingleObject(hproc, win32event.INFINITE)
|
614
|
-
exit_code = win32process.GetExitCodeProcess(hproc)
|
615
|
-
outf = open(outfile)
|
616
|
-
try:
|
617
|
-
output = outf.read()
|
618
|
-
finally:
|
619
|
-
outf.close()
|
620
|
-
|
621
|
-
if exit_code:
|
622
|
-
# Even if quiet you get to see this message.
|
623
|
-
print("Error: registration failed (exit code %s)." % exit_code)
|
624
|
-
# if we are quiet then the output if likely to already be nearly
|
625
|
-
# empty, so always print it.
|
626
|
-
print(output, end=" ")
|
627
|
-
finally:
|
628
|
-
for f in (outfile, batfile):
|
629
|
-
try:
|
630
|
-
os.unlink(f)
|
631
|
-
except OSError as exc:
|
632
|
-
print(f"Failed to remove tempfile '{f}': {exc}")
|
633
|
-
|
634
|
-
|
635
|
-
def UseCommandLine(*classes, **flags):
|
636
|
-
unregisterInfo = "--unregister_info" in sys.argv
|
637
|
-
unregister = "--unregister" in sys.argv
|
638
|
-
flags["quiet"] = flags.get("quiet", 0) or "--quiet" in sys.argv
|
639
|
-
flags["debug"] = flags.get("debug", 0) or "--debug" in sys.argv
|
640
|
-
flags["unattended"] = flags.get("unattended", 0) or "--unattended" in sys.argv
|
641
|
-
if unregisterInfo:
|
642
|
-
return UnregisterInfoClasses(*classes, **flags)
|
643
|
-
try:
|
644
|
-
if unregister:
|
645
|
-
UnregisterClasses(*classes, **flags)
|
646
|
-
else:
|
647
|
-
RegisterClasses(*classes, **flags)
|
648
|
-
except win32api.error as exc:
|
649
|
-
# If we are on xp+ and have "access denied", retry using
|
650
|
-
# ShellExecuteEx with 'runas' verb to force elevation (vista) and/or
|
651
|
-
# admin login dialog (vista/xp)
|
652
|
-
if (
|
653
|
-
flags["unattended"]
|
654
|
-
or exc.winerror != winerror.ERROR_ACCESS_DENIED
|
655
|
-
or sys.getwindowsversion()[0] < 5
|
656
|
-
):
|
657
|
-
raise
|
658
|
-
ReExecuteElevated(flags)
|
659
|
-
|
660
|
-
|
661
|
-
def RegisterPyComCategory():
|
662
|
-
"""Register the Python COM Server component category."""
|
663
|
-
regCat = _cat_registrar()
|
664
|
-
regCat.RegisterCategories([(CATID_PythonCOMServer, 0x0409, "Python COM Server")])
|
665
|
-
|
666
|
-
|
667
|
-
if not pythoncom.frozen:
|
668
|
-
try:
|
669
|
-
win32api.RegQueryValue(
|
670
|
-
win32con.HKEY_CLASSES_ROOT,
|
671
|
-
"Component Categories\\%s" % CATID_PythonCOMServer,
|
672
|
-
)
|
673
|
-
except win32api.error:
|
674
|
-
try:
|
675
|
-
RegisterPyComCategory()
|
676
|
-
except pythoncom.error: # Error with the COM category manager - oh well.
|
677
|
-
pass
|