py2docfx 0.1.13.dev2016838__py3-none-any.whl → 0.1.13.dev2021865__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/venv/basevenv/Lib/site-packages/setuptools/_distutils/_modified.py +26 -4
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/_msvccompiler.py +2 -603
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/archive_util.py +48 -18
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/ccompiler.py +17 -1257
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/cmd.py +133 -41
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/bdist.py +19 -8
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/bdist_dumb.py +2 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/bdist_rpm.py +6 -5
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build.py +8 -4
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_clib.py +8 -7
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_ext.py +32 -13
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_py.py +10 -9
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_scripts.py +3 -14
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/check.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/clean.py +2 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/config.py +1 -8
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install.py +22 -19
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install_data.py +4 -3
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install_headers.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install_lib.py +11 -7
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install_scripts.py +4 -3
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/sdist.py +22 -16
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compat/__init__.py +6 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/base.py +1391 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/cygwin.py +340 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/errors.py +24 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/msvc.py +614 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/{tests/test_ccompiler.py → compilers/C/tests/test_base.py} +9 -19
- py2docfx/venv/{venv1/Lib/site-packages/setuptools/_distutils/tests/test_cygwinccompiler.py → basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/tests/test_cygwin.py} +7 -12
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/{tests/test_mingwccompiler.py → compilers/C/tests/test_mingw.py} +12 -20
- py2docfx/venv/{venv1/Lib/site-packages/setuptools/_distutils/tests/test_msvccompiler.py → basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/tests/test_msvc.py} +11 -12
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/{tests/test_unixccompiler.py → compilers/C/tests/test_unix.py} +5 -5
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/unix.py +409 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/zos.py +230 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/cygwinccompiler.py +20 -328
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/dist.py +148 -80
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/errors.py +11 -27
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/extension.py +19 -16
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/filelist.py +80 -15
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/spawn.py +22 -5
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/sysconfig.py +32 -7
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/tests/test_build_ext.py +13 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/tests/test_sdist.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/unixccompiler.py +2 -401
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/util.py +38 -23
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/zosccompiler.py +2 -228
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_static.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/editable_wheel.py +3 -3
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/install.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/config/test_setupcfg.py +2 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_build_py.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/unicode_utils.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/__init__.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/ado_consts.py +3 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/adodbapi.py +22 -26
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/apibase.py +3 -4
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/db_print.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/db_table_names.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/process_connect_string.py +7 -7
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/setup.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/adodbapitest.py +21 -73
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/adodbapitestconfig.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/dbapi20.py +11 -17
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/setuptestframework.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/isapi/install.py +8 -11
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector_asynch.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector_with_filter.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/isapi/simple.py +1 -0
- py2docfx/venv/venv1/Lib/site-packages/isapi/threaded_extension.py +1 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/basictimerapp.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/customprint.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/demoutils.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/cmdserver.py +2 -5
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/guidemo.py +14 -41
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/objdoc.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/demoutils.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/flash.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/ocxserialtest.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/ocxtest.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/webbrowser.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/openGLDemo.py +57 -12
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/toolbar.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/configui.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/dbgcon.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/debugger.py +7 -8
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/fail.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/ideoptions.py +7 -10
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/list.py +11 -8
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/login.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/docking/DockingBar.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/app.py +19 -22
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/dbgcommands.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/ModuleBrowser.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/__init__.py +3 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/document.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/editor.py +6 -6
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/vss.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/help.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/interact.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/intpyapp.py +5 -7
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/intpydde.py +7 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/scriptutils.py +4 -6
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/sgrepmdi.py +13 -22
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/startup.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/stdin.py +1 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/toolmenu.py +0 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/AutoIndent.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/CallTips.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/activex.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/dialog.py +7 -10
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/IDLEenvironment.py +1 -5
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/bindings.py +4 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/config.py +3 -5
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/configui.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/document.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/formatter.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/keycodes.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/scintillacon.py +1178 -78
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/view.py +17 -21
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/browser.py +6 -18
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/hierlist.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/_modified.py +26 -4
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/_msvccompiler.py +2 -603
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/archive_util.py +48 -18
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/ccompiler.py +17 -1257
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/cmd.py +133 -41
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/bdist.py +19 -8
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/bdist_dumb.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/bdist_rpm.py +6 -5
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build.py +8 -4
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_clib.py +8 -7
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_ext.py +32 -13
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_py.py +10 -9
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_scripts.py +3 -14
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/check.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/clean.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/config.py +1 -8
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install.py +22 -19
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install_data.py +4 -3
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install_headers.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install_lib.py +11 -7
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install_scripts.py +4 -3
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/sdist.py +22 -16
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compat/__init__.py +6 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/base.py +1391 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/cygwin.py +340 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/errors.py +24 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/msvc.py +614 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/{tests/test_ccompiler.py → compilers/C/tests/test_base.py} +9 -19
- py2docfx/venv/{basevenv/Lib/site-packages/setuptools/_distutils/tests/test_cygwinccompiler.py → venv1/Lib/site-packages/setuptools/_distutils/compilers/C/tests/test_cygwin.py} +7 -12
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/{tests/test_mingwccompiler.py → compilers/C/tests/test_mingw.py} +12 -20
- py2docfx/venv/{basevenv/Lib/site-packages/setuptools/_distutils/tests/test_msvccompiler.py → venv1/Lib/site-packages/setuptools/_distutils/compilers/C/tests/test_msvc.py} +11 -12
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/{tests/test_unixccompiler.py → compilers/C/tests/test_unix.py} +5 -5
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/unix.py +409 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/zos.py +230 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/cygwinccompiler.py +20 -328
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/dist.py +148 -80
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/errors.py +11 -27
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/extension.py +19 -16
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/filelist.py +80 -15
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/spawn.py +22 -5
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/sysconfig.py +32 -7
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/tests/test_build_ext.py +13 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/tests/test_sdist.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/unixccompiler.py +2 -401
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/util.py +38 -23
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/zosccompiler.py +2 -228
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_static.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/editable_wheel.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/install.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/config/test_setupcfg.py +2 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_build_py.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/unicode_utils.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/EvtFormatMessage.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/EvtSubscribe_push.py +8 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/GetSaveFileName.py +8 -8
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/c_extension/setup.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/dde/ddeclient.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/dde/ddeserver.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/getfilever.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/pipes/runproc.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/rastest.py +4 -6
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/GetTokenInformation.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/account_rights.py +0 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/explicit_entries.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/get_policy_info.py +0 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/list_rights.py +0 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/localized_names.py +7 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/query_information.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_file_audit.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_file_owner.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_policy_info.py +0 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setkernelobjectsecurity.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setsecurityinfo.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setuserobjectsecurity.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/fetch_url.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/simple_auth.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/socket_server.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/pipeTestService.py +10 -9
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/pipeTestServiceClient.py +6 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32clipboardDemo.py +17 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32comport_demo.py +32 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32console_demo.py +1 -4
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_devicenotify.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_menu.py +60 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_taskbar.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32netdemo.py +2 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32ts_logoff_disconnected.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32wnet/testwnet.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/commctrl.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/netbios.py +8 -10
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywin32_bootstrap.py +2 -10
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywin32_testutil.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywintypes.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/regutil.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/sspi.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win2kras.py +14 -7
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32con.py +16 -35
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32cryptcon.py +1 -4
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32evtlogutil.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32gui_struct.py +6 -6
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32pdhquery.py +10 -11
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32pdhutil.py +5 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32rcparser.py +1 -0
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32serviceutil.py +4 -6
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32timezone.py +304 -121
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32verstamp.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/winerror.py +4926 -604
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/winxptheme.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/h2py.py +194 -0
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/pywin32_postinstall.py +733 -0
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/pywin32_testall.py +120 -0
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/regsetup.py +4 -7
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/setup_d.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/handles.py +13 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_clipboard.py +12 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_sspi.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32api.py +8 -4
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32clipboard.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32cred.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32crypt.py +16 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32file.py +24 -8
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32gui.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32guistruct.py +2 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32inet.py +23 -6
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32net.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32ts.py +19 -0
- py2docfx/venv/venv1/Lib/site-packages/win32/winxpgui.py +3 -11
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/CLSIDToClass.py +3 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/__init__.py +97 -65
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/build.py +24 -24
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/combrowse.py +17 -33
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/dynamic.py +14 -14
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/gencache.py +30 -12
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/genpy.py +50 -98
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/makepy.py +12 -8
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/selecttlb.py +3 -4
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/util.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/dump_clipboard.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/excelAddin.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/excelRTDServer.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/iebutton.py +0 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/ietoolbar.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/outlookAddin.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegw.py +48 -56
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegwenum.py +2 -6
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegwparse.py +9 -11
- py2docfx/venv/venv1/Lib/site-packages/win32com/olectl.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/connect.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/dispatcher.py +20 -24
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/exception.py +8 -8
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/policy.py +4 -18
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/register.py +5 -6
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/dictionary.py +2 -5
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/interp.py +7 -7
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/test_pycomtest.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/GenTestScripts.py +2 -4
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/errorSemantics.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/pippo_server.py +1 -4
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testADOEvents.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testAXScript.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDictionary.py +4 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDynamic.py +3 -5
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testExchange.py +2 -7
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testGatewayAddresses.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testIterators.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testMSOffice.py +40 -57
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testMSOfficeEvents.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPersist.py +7 -7
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPippo.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPyComTest.py +143 -7
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testServers.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testall.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testmakepy.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testvb.py +12 -8
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/util.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/universal.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/util.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/scp.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/search.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/authorization/demos/EditSecurity.py +1 -24
- py2docfx/venv/venv1/Lib/site-packages/win32comext/authorization/demos/EditServiceSecurity.py +0 -20
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/adb.py +2 -8
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/codecontainer.py +16 -12
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/contexts.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/debugger.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/documents.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/dump.py +2 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/expressions.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/util.py +7 -14
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/debug.py +2 -14
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/error.py +4 -5
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/framework.py +5 -5
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/pydumper.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/pyscript.py +5 -10
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/scriptdispatch.py +3 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/server/axsite.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/test/leakTest.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/test/testHost4Dbg.py +0 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/bits/test/test_bits.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/ifilter/demo/filterDemo.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/demos/mapisend.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/emsabtags.py +1 -0
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/mapitags.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/mapiutil.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/propsys/test/testpropsys.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/IFileOperationProgressSink.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/ITransferAdviseSink.py +5 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/column_provider.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/copy_hook.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/empty_volume_cache.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/folder_view.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/icon_handler.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/shell_view.py +4 -5
- py2docfx/venv/venv1/Lib/site-packages/win32comext/taskscheduler/test/test_addtask_2.py +0 -1
- py2docfx/venv/venv1/Scripts/pywin32_postinstall.py +77 -122
- py2docfx/venv/venv1/Scripts/pywin32_testall.py +4 -9
- {py2docfx-0.1.13.dev2016838.dist-info → py2docfx-0.1.13.dev2021865.dist-info}/METADATA +1 -1
- {py2docfx-0.1.13.dev2016838.dist-info → py2docfx-0.1.13.dev2021865.dist-info}/RECORD +342 -330
- py2docfx/venv/venv1/Lib/site-packages/docs/conf.py +0 -384
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/mdi_pychecker.py +0 -850
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testNetscape.py +0 -24
- {py2docfx-0.1.13.dev2016838.dist-info → py2docfx-0.1.13.dev2021865.dist-info}/WHEEL +0 -0
- {py2docfx-0.1.13.dev2016838.dist-info → py2docfx-0.1.13.dev2021865.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,733 @@
|
|
1
|
+
# postinstall script for pywin32
|
2
|
+
#
|
3
|
+
# copies pywintypesXX.dll and pythoncomXX.dll into the system directory,
|
4
|
+
# and creates a pth file
|
5
|
+
import argparse
|
6
|
+
import glob
|
7
|
+
import os
|
8
|
+
import shutil
|
9
|
+
import sys
|
10
|
+
import sysconfig
|
11
|
+
import tempfile
|
12
|
+
import winreg
|
13
|
+
|
14
|
+
tee_f = open(
|
15
|
+
os.path.join(
|
16
|
+
tempfile.gettempdir(), # Send output somewhere so it can be found if necessary...
|
17
|
+
"pywin32_postinstall.log",
|
18
|
+
),
|
19
|
+
"w",
|
20
|
+
)
|
21
|
+
|
22
|
+
|
23
|
+
class Tee:
|
24
|
+
def __init__(self, file):
|
25
|
+
self.f = file
|
26
|
+
|
27
|
+
def write(self, what):
|
28
|
+
if self.f is not None:
|
29
|
+
try:
|
30
|
+
self.f.write(what.replace("\n", "\r\n"))
|
31
|
+
except OSError:
|
32
|
+
pass
|
33
|
+
tee_f.write(what)
|
34
|
+
|
35
|
+
def flush(self):
|
36
|
+
if self.f is not None:
|
37
|
+
try:
|
38
|
+
self.f.flush()
|
39
|
+
except OSError:
|
40
|
+
pass
|
41
|
+
tee_f.flush()
|
42
|
+
|
43
|
+
|
44
|
+
sys.stderr = Tee(sys.stderr)
|
45
|
+
sys.stdout = Tee(sys.stdout)
|
46
|
+
|
47
|
+
com_modules = [
|
48
|
+
# module_name, class_names
|
49
|
+
("win32com.servers.interp", "Interpreter"),
|
50
|
+
("win32com.servers.dictionary", "DictionaryPolicy"),
|
51
|
+
("win32com.axscript.client.pyscript", "PyScript"),
|
52
|
+
]
|
53
|
+
|
54
|
+
# Is this a 'silent' install - ie, avoid all dialogs.
|
55
|
+
# Different than 'verbose'
|
56
|
+
silent = 0
|
57
|
+
|
58
|
+
# Verbosity of output messages.
|
59
|
+
verbose = 1
|
60
|
+
|
61
|
+
root_key_name = "Software\\Python\\PythonCore\\" + sys.winver
|
62
|
+
|
63
|
+
|
64
|
+
def get_root_hkey():
|
65
|
+
try:
|
66
|
+
winreg.OpenKey(
|
67
|
+
winreg.HKEY_LOCAL_MACHINE, root_key_name, 0, winreg.KEY_CREATE_SUB_KEY
|
68
|
+
)
|
69
|
+
return winreg.HKEY_LOCAL_MACHINE
|
70
|
+
except OSError:
|
71
|
+
# Either not exist, or no permissions to create subkey means
|
72
|
+
# must be HKCU
|
73
|
+
return winreg.HKEY_CURRENT_USER
|
74
|
+
|
75
|
+
|
76
|
+
# Create a function with the same signature as create_shortcut
|
77
|
+
# previously provided by bdist_wininst
|
78
|
+
def create_shortcut(
|
79
|
+
path, description, filename, arguments="", workdir="", iconpath="", iconindex=0
|
80
|
+
):
|
81
|
+
import pythoncom
|
82
|
+
from win32com.shell import shell
|
83
|
+
|
84
|
+
ilink = pythoncom.CoCreateInstance(
|
85
|
+
shell.CLSID_ShellLink,
|
86
|
+
None,
|
87
|
+
pythoncom.CLSCTX_INPROC_SERVER,
|
88
|
+
shell.IID_IShellLink,
|
89
|
+
)
|
90
|
+
ilink.SetPath(path)
|
91
|
+
ilink.SetDescription(description)
|
92
|
+
if arguments:
|
93
|
+
ilink.SetArguments(arguments)
|
94
|
+
if workdir:
|
95
|
+
ilink.SetWorkingDirectory(workdir)
|
96
|
+
if iconpath or iconindex:
|
97
|
+
ilink.SetIconLocation(iconpath, iconindex)
|
98
|
+
# now save it.
|
99
|
+
ipf = ilink.QueryInterface(pythoncom.IID_IPersistFile)
|
100
|
+
ipf.Save(filename, 0)
|
101
|
+
|
102
|
+
|
103
|
+
# Support the same list of "path names" as bdist_wininst used to
|
104
|
+
def get_special_folder_path(path_name):
|
105
|
+
from win32com.shell import shell, shellcon
|
106
|
+
|
107
|
+
for maybe in """
|
108
|
+
CSIDL_COMMON_STARTMENU CSIDL_STARTMENU CSIDL_COMMON_APPDATA
|
109
|
+
CSIDL_LOCAL_APPDATA CSIDL_APPDATA CSIDL_COMMON_DESKTOPDIRECTORY
|
110
|
+
CSIDL_DESKTOPDIRECTORY CSIDL_COMMON_STARTUP CSIDL_STARTUP
|
111
|
+
CSIDL_COMMON_PROGRAMS CSIDL_PROGRAMS CSIDL_PROGRAM_FILES_COMMON
|
112
|
+
CSIDL_PROGRAM_FILES CSIDL_FONTS""".split():
|
113
|
+
if maybe == path_name:
|
114
|
+
csidl = getattr(shellcon, maybe)
|
115
|
+
return shell.SHGetSpecialFolderPath(0, csidl, False)
|
116
|
+
raise ValueError(f"{path_name} is an unknown path ID")
|
117
|
+
|
118
|
+
|
119
|
+
def CopyTo(desc, src, dest):
|
120
|
+
import win32api
|
121
|
+
import win32con
|
122
|
+
|
123
|
+
while 1:
|
124
|
+
try:
|
125
|
+
win32api.CopyFile(src, dest, 0)
|
126
|
+
return
|
127
|
+
except win32api.error as details:
|
128
|
+
if details.winerror == 5: # access denied - user not admin.
|
129
|
+
raise
|
130
|
+
if silent:
|
131
|
+
# Running silent mode - just re-raise the error.
|
132
|
+
raise
|
133
|
+
full_desc = (
|
134
|
+
f"Error {desc}\n\n"
|
135
|
+
"If you have any Python applications running, "
|
136
|
+
f"please close them now\nand select 'Retry'\n\n{details.strerror}"
|
137
|
+
)
|
138
|
+
rc = win32api.MessageBox(
|
139
|
+
0, full_desc, "Installation Error", win32con.MB_ABORTRETRYIGNORE
|
140
|
+
)
|
141
|
+
if rc == win32con.IDABORT:
|
142
|
+
raise
|
143
|
+
elif rc == win32con.IDIGNORE:
|
144
|
+
return
|
145
|
+
# else retry - around we go again.
|
146
|
+
|
147
|
+
|
148
|
+
# We need to import win32api to determine the Windows system directory,
|
149
|
+
# so we can copy our system files there - but importing win32api will
|
150
|
+
# load the pywintypes.dll already in the system directory preventing us
|
151
|
+
# from updating them!
|
152
|
+
# So, we pull the same trick pywintypes.py does, but it loads from
|
153
|
+
# our pywintypes_system32 directory.
|
154
|
+
def LoadSystemModule(lib_dir, modname):
|
155
|
+
# See if this is a debug build.
|
156
|
+
import importlib.machinery
|
157
|
+
import importlib.util
|
158
|
+
|
159
|
+
suffix = "_d" if "_d.pyd" in importlib.machinery.EXTENSION_SUFFIXES else ""
|
160
|
+
filename = "%s%d%d%s.dll" % (
|
161
|
+
modname,
|
162
|
+
sys.version_info.major,
|
163
|
+
sys.version_info.minor,
|
164
|
+
suffix,
|
165
|
+
)
|
166
|
+
filename = os.path.join(lib_dir, "pywin32_system32", filename)
|
167
|
+
loader = importlib.machinery.ExtensionFileLoader(modname, filename)
|
168
|
+
spec = importlib.machinery.ModuleSpec(name=modname, loader=loader, origin=filename)
|
169
|
+
mod = importlib.util.module_from_spec(spec)
|
170
|
+
loader.exec_module(mod)
|
171
|
+
|
172
|
+
|
173
|
+
def SetPyKeyVal(key_name, value_name, value):
|
174
|
+
root_hkey = get_root_hkey()
|
175
|
+
root_key = winreg.OpenKey(root_hkey, root_key_name)
|
176
|
+
try:
|
177
|
+
my_key = winreg.CreateKey(root_key, key_name)
|
178
|
+
try:
|
179
|
+
winreg.SetValueEx(my_key, value_name, 0, winreg.REG_SZ, value)
|
180
|
+
if verbose:
|
181
|
+
print(f"-> {root_key_name}\\{key_name}[{value_name}]={value!r}")
|
182
|
+
finally:
|
183
|
+
my_key.Close()
|
184
|
+
finally:
|
185
|
+
root_key.Close()
|
186
|
+
|
187
|
+
|
188
|
+
def UnsetPyKeyVal(key_name, value_name, delete_key=False):
|
189
|
+
root_hkey = get_root_hkey()
|
190
|
+
root_key = winreg.OpenKey(root_hkey, root_key_name)
|
191
|
+
try:
|
192
|
+
my_key = winreg.OpenKey(root_key, key_name, 0, winreg.KEY_SET_VALUE)
|
193
|
+
try:
|
194
|
+
winreg.DeleteValue(my_key, value_name)
|
195
|
+
if verbose:
|
196
|
+
print(f"-> DELETE {root_key_name}\\{key_name}[{value_name}]")
|
197
|
+
finally:
|
198
|
+
my_key.Close()
|
199
|
+
if delete_key:
|
200
|
+
winreg.DeleteKey(root_key, key_name)
|
201
|
+
if verbose:
|
202
|
+
print(f"-> DELETE {root_key_name}\\{key_name}")
|
203
|
+
except OSError as why:
|
204
|
+
winerror = getattr(why, "winerror", why.errno)
|
205
|
+
if winerror != 2: # file not found
|
206
|
+
raise
|
207
|
+
finally:
|
208
|
+
root_key.Close()
|
209
|
+
|
210
|
+
|
211
|
+
def RegisterCOMObjects(register=True):
|
212
|
+
import win32com.server.register
|
213
|
+
|
214
|
+
if register:
|
215
|
+
func = win32com.server.register.RegisterClasses
|
216
|
+
else:
|
217
|
+
func = win32com.server.register.UnregisterClasses
|
218
|
+
flags = {}
|
219
|
+
if not verbose:
|
220
|
+
flags["quiet"] = 1
|
221
|
+
for module, klass_name in com_modules:
|
222
|
+
__import__(module)
|
223
|
+
mod = sys.modules[module]
|
224
|
+
flags["finalize_register"] = getattr(mod, "DllRegisterServer", None)
|
225
|
+
flags["finalize_unregister"] = getattr(mod, "DllUnregisterServer", None)
|
226
|
+
klass = getattr(mod, klass_name)
|
227
|
+
func(klass, **flags)
|
228
|
+
|
229
|
+
|
230
|
+
def RegisterHelpFile(register=True, lib_dir=None):
|
231
|
+
if lib_dir is None:
|
232
|
+
lib_dir = sysconfig.get_paths()["platlib"]
|
233
|
+
if register:
|
234
|
+
# Register the .chm help file.
|
235
|
+
chm_file = os.path.join(lib_dir, "PyWin32.chm")
|
236
|
+
if os.path.isfile(chm_file):
|
237
|
+
# This isn't recursive, so if 'Help' doesn't exist, we croak
|
238
|
+
SetPyKeyVal("Help", None, None)
|
239
|
+
SetPyKeyVal("Help\\Pythonwin Reference", None, chm_file)
|
240
|
+
return chm_file
|
241
|
+
else:
|
242
|
+
print("NOTE: PyWin32.chm can not be located, so has not been registered")
|
243
|
+
else:
|
244
|
+
UnsetPyKeyVal("Help\\Pythonwin Reference", None, delete_key=True)
|
245
|
+
return None
|
246
|
+
|
247
|
+
|
248
|
+
def RegisterPythonwin(register=True, lib_dir=None):
|
249
|
+
"""Add (or remove) Pythonwin to context menu for python scripts.
|
250
|
+
??? Should probably also add Edit command for pys files also.
|
251
|
+
Also need to remove these keys on uninstall, but there's no function
|
252
|
+
to add registry entries to uninstall log ???
|
253
|
+
"""
|
254
|
+
import os
|
255
|
+
|
256
|
+
if lib_dir is None:
|
257
|
+
lib_dir = sysconfig.get_paths()["platlib"]
|
258
|
+
classes_root = get_root_hkey()
|
259
|
+
## Installer executable doesn't seem to pass anything to postinstall script indicating if it's a debug build
|
260
|
+
pythonwin_exe = os.path.join(lib_dir, "Pythonwin", "Pythonwin.exe")
|
261
|
+
pythonwin_edit_command = pythonwin_exe + ' -edit "%1"'
|
262
|
+
|
263
|
+
keys_vals = [
|
264
|
+
(
|
265
|
+
"Software\\Microsoft\\Windows\\CurrentVersion\\App Paths\\Pythonwin.exe",
|
266
|
+
"",
|
267
|
+
pythonwin_exe,
|
268
|
+
),
|
269
|
+
(
|
270
|
+
"Software\\Classes\\Python.File\\shell\\Edit with Pythonwin",
|
271
|
+
"command",
|
272
|
+
pythonwin_edit_command,
|
273
|
+
),
|
274
|
+
(
|
275
|
+
"Software\\Classes\\Python.NoConFile\\shell\\Edit with Pythonwin",
|
276
|
+
"command",
|
277
|
+
pythonwin_edit_command,
|
278
|
+
),
|
279
|
+
]
|
280
|
+
|
281
|
+
try:
|
282
|
+
if register:
|
283
|
+
for key, sub_key, val in keys_vals:
|
284
|
+
## Since winreg only uses the character Api functions, this can fail if Python
|
285
|
+
## is installed to a path containing non-ascii characters
|
286
|
+
hkey = winreg.CreateKey(classes_root, key)
|
287
|
+
if sub_key:
|
288
|
+
hkey = winreg.CreateKey(hkey, sub_key)
|
289
|
+
winreg.SetValueEx(hkey, None, 0, winreg.REG_SZ, val)
|
290
|
+
hkey.Close()
|
291
|
+
else:
|
292
|
+
for key, sub_key, val in keys_vals:
|
293
|
+
try:
|
294
|
+
if sub_key:
|
295
|
+
hkey = winreg.OpenKey(classes_root, key)
|
296
|
+
winreg.DeleteKey(hkey, sub_key)
|
297
|
+
hkey.Close()
|
298
|
+
winreg.DeleteKey(classes_root, key)
|
299
|
+
except OSError as why:
|
300
|
+
winerror = getattr(why, "winerror", why.errno)
|
301
|
+
if winerror != 2: # file not found
|
302
|
+
raise
|
303
|
+
finally:
|
304
|
+
# tell windows about the change
|
305
|
+
from win32com.shell import shell, shellcon
|
306
|
+
|
307
|
+
shell.SHChangeNotify(
|
308
|
+
shellcon.SHCNE_ASSOCCHANGED, shellcon.SHCNF_IDLIST, None, None
|
309
|
+
)
|
310
|
+
|
311
|
+
|
312
|
+
def get_shortcuts_folder():
|
313
|
+
if get_root_hkey() == winreg.HKEY_LOCAL_MACHINE:
|
314
|
+
try:
|
315
|
+
fldr = get_special_folder_path("CSIDL_COMMON_PROGRAMS")
|
316
|
+
except OSError:
|
317
|
+
# No CSIDL_COMMON_PROGRAMS on this platform
|
318
|
+
fldr = get_special_folder_path("CSIDL_PROGRAMS")
|
319
|
+
else:
|
320
|
+
# non-admin install - always goes in this user's start menu.
|
321
|
+
fldr = get_special_folder_path("CSIDL_PROGRAMS")
|
322
|
+
|
323
|
+
try:
|
324
|
+
install_group = winreg.QueryValue(
|
325
|
+
get_root_hkey(), root_key_name + "\\InstallPath\\InstallGroup"
|
326
|
+
)
|
327
|
+
except OSError:
|
328
|
+
install_group = "Python %d.%d" % (
|
329
|
+
sys.version_info.major,
|
330
|
+
sys.version_info.minor,
|
331
|
+
)
|
332
|
+
return os.path.join(fldr, install_group)
|
333
|
+
|
334
|
+
|
335
|
+
# Get the system directory, which may be the Wow64 directory if we are a 32bit
|
336
|
+
# python on a 64bit OS.
|
337
|
+
def get_system_dir():
|
338
|
+
import win32api # we assume this exists.
|
339
|
+
|
340
|
+
try:
|
341
|
+
import pythoncom
|
342
|
+
import win32process
|
343
|
+
from win32com.shell import shell, shellcon
|
344
|
+
|
345
|
+
try:
|
346
|
+
if win32process.IsWow64Process():
|
347
|
+
return shell.SHGetSpecialFolderPath(0, shellcon.CSIDL_SYSTEMX86)
|
348
|
+
return shell.SHGetSpecialFolderPath(0, shellcon.CSIDL_SYSTEM)
|
349
|
+
except (pythoncom.com_error, win32process.error):
|
350
|
+
return win32api.GetSystemDirectory()
|
351
|
+
except ImportError:
|
352
|
+
return win32api.GetSystemDirectory()
|
353
|
+
|
354
|
+
|
355
|
+
def fixup_dbi():
|
356
|
+
# We used to have a dbi.pyd with our .pyd files, but now have a .py file.
|
357
|
+
# If the user didn't uninstall, they will find the .pyd which will cause
|
358
|
+
# problems - so handle that.
|
359
|
+
import win32api
|
360
|
+
import win32con
|
361
|
+
|
362
|
+
pyd_name = os.path.join(os.path.dirname(win32api.__file__), "dbi.pyd")
|
363
|
+
pyd_d_name = os.path.join(os.path.dirname(win32api.__file__), "dbi_d.pyd")
|
364
|
+
py_name = os.path.join(os.path.dirname(win32con.__file__), "dbi.py")
|
365
|
+
for this_pyd in (pyd_name, pyd_d_name):
|
366
|
+
this_dest = this_pyd + ".old"
|
367
|
+
if os.path.isfile(this_pyd) and os.path.isfile(py_name):
|
368
|
+
try:
|
369
|
+
if os.path.isfile(this_dest):
|
370
|
+
print(
|
371
|
+
f"Old dbi '{this_dest}' already exists - deleting '{this_pyd}'"
|
372
|
+
)
|
373
|
+
os.remove(this_pyd)
|
374
|
+
else:
|
375
|
+
os.rename(this_pyd, this_dest)
|
376
|
+
print(f"renamed '{this_pyd}'->'{this_pyd}.old'")
|
377
|
+
except OSError as exc:
|
378
|
+
print(f"FAILED to rename '{this_pyd}': {exc}")
|
379
|
+
|
380
|
+
|
381
|
+
def install(lib_dir):
|
382
|
+
import traceback
|
383
|
+
|
384
|
+
# The .pth file is now installed as a regular file.
|
385
|
+
# Create the .pth file in the site-packages dir, and use only relative paths
|
386
|
+
# We used to write a .pth directly to sys.prefix - clobber it.
|
387
|
+
if os.path.isfile(os.path.join(sys.prefix, "pywin32.pth")):
|
388
|
+
os.unlink(os.path.join(sys.prefix, "pywin32.pth"))
|
389
|
+
# The .pth may be new and therefore not loaded in this session.
|
390
|
+
# Setup the paths just in case.
|
391
|
+
for name in "win32 win32\\lib Pythonwin".split():
|
392
|
+
sys.path.append(os.path.join(lib_dir, name))
|
393
|
+
# It is possible people with old versions installed with still have
|
394
|
+
# pywintypes and pythoncom registered. We no longer need this, and stale
|
395
|
+
# entries hurt us.
|
396
|
+
for name in "pythoncom pywintypes".split():
|
397
|
+
keyname = "Software\\Python\\PythonCore\\" + sys.winver + "\\Modules\\" + name
|
398
|
+
for root in winreg.HKEY_LOCAL_MACHINE, winreg.HKEY_CURRENT_USER:
|
399
|
+
try:
|
400
|
+
winreg.DeleteKey(root, keyname + "\\Debug")
|
401
|
+
except OSError:
|
402
|
+
pass
|
403
|
+
try:
|
404
|
+
winreg.DeleteKey(root, keyname)
|
405
|
+
except OSError:
|
406
|
+
pass
|
407
|
+
LoadSystemModule(lib_dir, "pywintypes")
|
408
|
+
LoadSystemModule(lib_dir, "pythoncom")
|
409
|
+
import win32api
|
410
|
+
|
411
|
+
# and now we can get the system directory:
|
412
|
+
files = glob.glob(os.path.join(lib_dir, "pywin32_system32\\*.*"))
|
413
|
+
if not files:
|
414
|
+
raise RuntimeError("No system files to copy!!")
|
415
|
+
# Try the system32 directory first - if that fails due to "access denied",
|
416
|
+
# it implies a non-admin user, and we use sys.prefix
|
417
|
+
for dest_dir in [get_system_dir(), sys.prefix]:
|
418
|
+
# and copy some files over there
|
419
|
+
worked = 0
|
420
|
+
try:
|
421
|
+
for fname in files:
|
422
|
+
base = os.path.basename(fname)
|
423
|
+
dst = os.path.join(dest_dir, base)
|
424
|
+
CopyTo("installing %s" % base, fname, dst)
|
425
|
+
if verbose:
|
426
|
+
print(f"Copied {base} to {dst}")
|
427
|
+
worked = 1
|
428
|
+
# Nuke any other versions that may exist - having
|
429
|
+
# duplicates causes major headaches.
|
430
|
+
bad_dest_dirs = [
|
431
|
+
os.path.join(sys.prefix, "Library\\bin"),
|
432
|
+
os.path.join(sys.prefix, "Lib\\site-packages\\win32"),
|
433
|
+
]
|
434
|
+
if dest_dir != sys.prefix:
|
435
|
+
bad_dest_dirs.append(sys.prefix)
|
436
|
+
for bad_dest_dir in bad_dest_dirs:
|
437
|
+
bad_fname = os.path.join(bad_dest_dir, base)
|
438
|
+
if os.path.exists(bad_fname):
|
439
|
+
# let exceptions go here - delete must succeed
|
440
|
+
os.unlink(bad_fname)
|
441
|
+
if worked:
|
442
|
+
break
|
443
|
+
except win32api.error as details:
|
444
|
+
if details.winerror == 5:
|
445
|
+
# access denied - user not admin - try sys.prefix dir,
|
446
|
+
# but first check that a version doesn't already exist
|
447
|
+
# in that place - otherwise that one will still get used!
|
448
|
+
if os.path.exists(dst):
|
449
|
+
msg = (
|
450
|
+
"The file '%s' exists, but can not be replaced "
|
451
|
+
"due to insufficient permissions. You must "
|
452
|
+
"reinstall this software as an Administrator" % dst
|
453
|
+
)
|
454
|
+
print(msg)
|
455
|
+
raise RuntimeError(msg)
|
456
|
+
continue
|
457
|
+
raise
|
458
|
+
else:
|
459
|
+
raise RuntimeError(
|
460
|
+
"You don't have enough permissions to install the system files"
|
461
|
+
)
|
462
|
+
|
463
|
+
# Register our demo COM objects.
|
464
|
+
try:
|
465
|
+
try:
|
466
|
+
RegisterCOMObjects()
|
467
|
+
except win32api.error as details:
|
468
|
+
if details.winerror != 5: # ERROR_ACCESS_DENIED
|
469
|
+
raise
|
470
|
+
print("You do not have the permissions to install COM objects.")
|
471
|
+
print("The sample COM objects were not registered.")
|
472
|
+
except Exception:
|
473
|
+
print("FAILED to register the Python COM objects")
|
474
|
+
traceback.print_exc()
|
475
|
+
|
476
|
+
# There may be no main Python key in HKCU if, eg, an admin installed
|
477
|
+
# python itself.
|
478
|
+
winreg.CreateKey(get_root_hkey(), root_key_name)
|
479
|
+
|
480
|
+
chm_file = None
|
481
|
+
try:
|
482
|
+
chm_file = RegisterHelpFile(True, lib_dir)
|
483
|
+
except Exception:
|
484
|
+
print("Failed to register help file")
|
485
|
+
traceback.print_exc()
|
486
|
+
else:
|
487
|
+
if verbose:
|
488
|
+
print("Registered help file")
|
489
|
+
|
490
|
+
# misc other fixups.
|
491
|
+
fixup_dbi()
|
492
|
+
|
493
|
+
# Register Pythonwin in context menu
|
494
|
+
try:
|
495
|
+
RegisterPythonwin(True, lib_dir)
|
496
|
+
except Exception:
|
497
|
+
print("Failed to register pythonwin as editor")
|
498
|
+
traceback.print_exc()
|
499
|
+
else:
|
500
|
+
if verbose:
|
501
|
+
print("Pythonwin has been registered in context menu")
|
502
|
+
|
503
|
+
# Create the win32com\gen_py directory.
|
504
|
+
make_dir = os.path.join(lib_dir, "win32com", "gen_py")
|
505
|
+
if not os.path.isdir(make_dir):
|
506
|
+
if verbose:
|
507
|
+
print(f"Creating directory {make_dir}")
|
508
|
+
os.mkdir(make_dir)
|
509
|
+
|
510
|
+
try:
|
511
|
+
# create shortcuts
|
512
|
+
# CSIDL_COMMON_PROGRAMS only available works on NT/2000/XP, and
|
513
|
+
# will fail there if the user has no admin rights.
|
514
|
+
fldr = get_shortcuts_folder()
|
515
|
+
# If the group doesn't exist, then we don't make shortcuts - its
|
516
|
+
# possible that this isn't a "normal" install.
|
517
|
+
if os.path.isdir(fldr):
|
518
|
+
dst = os.path.join(fldr, "PythonWin.lnk")
|
519
|
+
create_shortcut(
|
520
|
+
os.path.join(lib_dir, "Pythonwin\\Pythonwin.exe"),
|
521
|
+
"The Pythonwin IDE",
|
522
|
+
dst,
|
523
|
+
"",
|
524
|
+
sys.prefix,
|
525
|
+
)
|
526
|
+
if verbose:
|
527
|
+
print("Shortcut for Pythonwin created")
|
528
|
+
# And the docs.
|
529
|
+
if chm_file:
|
530
|
+
dst = os.path.join(fldr, "Python for Windows Documentation.lnk")
|
531
|
+
doc = "Documentation for the PyWin32 extensions"
|
532
|
+
create_shortcut(chm_file, doc, dst)
|
533
|
+
if verbose:
|
534
|
+
print("Shortcut to documentation created")
|
535
|
+
else:
|
536
|
+
if verbose:
|
537
|
+
print(f"Can't install shortcuts - {fldr!r} is not a folder")
|
538
|
+
except Exception as details:
|
539
|
+
print(details)
|
540
|
+
|
541
|
+
# importing win32com.client ensures the gen_py dir created - not strictly
|
542
|
+
# necessary to do now, but this makes the installation "complete"
|
543
|
+
try:
|
544
|
+
import win32com.client # noqa
|
545
|
+
except ImportError:
|
546
|
+
# Don't let this error sound fatal
|
547
|
+
pass
|
548
|
+
print("The pywin32 extensions were successfully installed.")
|
549
|
+
|
550
|
+
|
551
|
+
def uninstall(lib_dir):
|
552
|
+
# First ensure our system modules are loaded from pywin32_system, so
|
553
|
+
# we can remove the ones we copied...
|
554
|
+
LoadSystemModule(lib_dir, "pywintypes")
|
555
|
+
LoadSystemModule(lib_dir, "pythoncom")
|
556
|
+
|
557
|
+
try:
|
558
|
+
RegisterCOMObjects(False)
|
559
|
+
except Exception as why:
|
560
|
+
print(f"Failed to unregister COM objects: {why}")
|
561
|
+
|
562
|
+
try:
|
563
|
+
RegisterHelpFile(False, lib_dir)
|
564
|
+
except Exception as why:
|
565
|
+
print(f"Failed to unregister help file: {why}")
|
566
|
+
else:
|
567
|
+
if verbose:
|
568
|
+
print("Unregistered help file")
|
569
|
+
|
570
|
+
try:
|
571
|
+
RegisterPythonwin(False, lib_dir)
|
572
|
+
except Exception as why:
|
573
|
+
print(f"Failed to unregister Pythonwin: {why}")
|
574
|
+
else:
|
575
|
+
if verbose:
|
576
|
+
print("Unregistered Pythonwin")
|
577
|
+
|
578
|
+
try:
|
579
|
+
# remove gen_py directory.
|
580
|
+
gen_dir = os.path.join(lib_dir, "win32com", "gen_py")
|
581
|
+
if os.path.isdir(gen_dir):
|
582
|
+
shutil.rmtree(gen_dir)
|
583
|
+
if verbose:
|
584
|
+
print(f"Removed directory {gen_dir}")
|
585
|
+
|
586
|
+
# Remove pythonwin compiled "config" files.
|
587
|
+
pywin_dir = os.path.join(lib_dir, "Pythonwin", "pywin")
|
588
|
+
for fname in glob.glob(os.path.join(pywin_dir, "*.cfc")):
|
589
|
+
os.remove(fname)
|
590
|
+
|
591
|
+
# The dbi.pyd.old files we may have created.
|
592
|
+
try:
|
593
|
+
os.remove(os.path.join(lib_dir, "win32", "dbi.pyd.old"))
|
594
|
+
except OSError:
|
595
|
+
pass
|
596
|
+
try:
|
597
|
+
os.remove(os.path.join(lib_dir, "win32", "dbi_d.pyd.old"))
|
598
|
+
except OSError:
|
599
|
+
pass
|
600
|
+
|
601
|
+
except Exception as why:
|
602
|
+
print(f"Failed to remove misc files: {why}")
|
603
|
+
|
604
|
+
try:
|
605
|
+
fldr = get_shortcuts_folder()
|
606
|
+
for link in ("PythonWin.lnk", "Python for Windows Documentation.lnk"):
|
607
|
+
fqlink = os.path.join(fldr, link)
|
608
|
+
if os.path.isfile(fqlink):
|
609
|
+
os.remove(fqlink)
|
610
|
+
if verbose:
|
611
|
+
print(f"Removed {link}")
|
612
|
+
except Exception as why:
|
613
|
+
print(f"Failed to remove shortcuts: {why}")
|
614
|
+
# Now remove the system32 files.
|
615
|
+
files = glob.glob(os.path.join(lib_dir, "pywin32_system32\\*.*"))
|
616
|
+
# Try the system32 directory first - if that fails due to "access denied",
|
617
|
+
# it implies a non-admin user, and we use sys.prefix
|
618
|
+
try:
|
619
|
+
for dest_dir in [get_system_dir(), sys.prefix]:
|
620
|
+
# and copy some files over there
|
621
|
+
worked = 0
|
622
|
+
for fname in files:
|
623
|
+
base = os.path.basename(fname)
|
624
|
+
dst = os.path.join(dest_dir, base)
|
625
|
+
if os.path.isfile(dst):
|
626
|
+
try:
|
627
|
+
os.remove(dst)
|
628
|
+
worked = 1
|
629
|
+
if verbose:
|
630
|
+
print("Removed file %s" % (dst))
|
631
|
+
except Exception:
|
632
|
+
print(f"FAILED to remove {dst}")
|
633
|
+
if worked:
|
634
|
+
break
|
635
|
+
except Exception as why:
|
636
|
+
print(f"FAILED to remove system files: {why}")
|
637
|
+
|
638
|
+
|
639
|
+
# NOTE: This used to be run from inside the bdist_wininst created binary un/installer.
|
640
|
+
# From inside the binary installer this script HAD to NOT
|
641
|
+
# call sys.exit() or raise SystemExit, otherwise the installer would also terminate!
|
642
|
+
# Out of principle, we're still not using system exits.
|
643
|
+
|
644
|
+
|
645
|
+
def verify_destination(location: str) -> str:
|
646
|
+
location = os.path.abspath(location)
|
647
|
+
if not os.path.isdir(location):
|
648
|
+
raise argparse.ArgumentTypeError(
|
649
|
+
f'Path "{location}" is not an existing directory!'
|
650
|
+
)
|
651
|
+
return location
|
652
|
+
|
653
|
+
|
654
|
+
def main():
|
655
|
+
parser = argparse.ArgumentParser(
|
656
|
+
formatter_class=argparse.RawDescriptionHelpFormatter,
|
657
|
+
description="""A post-install script for the pywin32 extensions.
|
658
|
+
|
659
|
+
* Typical usage:
|
660
|
+
|
661
|
+
> python -m pywin32_postinstall -install
|
662
|
+
|
663
|
+
* or (shorter but you don't have control over which python environment is used)
|
664
|
+
|
665
|
+
> pywin32_postinstall -install
|
666
|
+
|
667
|
+
You need to execute this script, with a '-install' parameter,
|
668
|
+
to ensure the environment is setup correctly to install COM objects, services, etc.
|
669
|
+
""",
|
670
|
+
)
|
671
|
+
parser.add_argument(
|
672
|
+
"-install",
|
673
|
+
default=False,
|
674
|
+
action="store_true",
|
675
|
+
help="Configure the Python environment correctly for pywin32.",
|
676
|
+
)
|
677
|
+
parser.add_argument(
|
678
|
+
"-remove",
|
679
|
+
default=False,
|
680
|
+
action="store_true",
|
681
|
+
help="Try and remove everything that was installed or copied.",
|
682
|
+
)
|
683
|
+
parser.add_argument(
|
684
|
+
"-wait",
|
685
|
+
type=int,
|
686
|
+
help="Wait for the specified process to terminate before starting.",
|
687
|
+
)
|
688
|
+
parser.add_argument(
|
689
|
+
"-silent",
|
690
|
+
default=False,
|
691
|
+
action="store_true",
|
692
|
+
help='Don\'t display the "Abort/Retry/Ignore" dialog for files in use.',
|
693
|
+
)
|
694
|
+
parser.add_argument(
|
695
|
+
"-quiet",
|
696
|
+
default=False,
|
697
|
+
action="store_true",
|
698
|
+
help="Don't display progress messages.",
|
699
|
+
)
|
700
|
+
parser.add_argument(
|
701
|
+
"-destination",
|
702
|
+
default=sysconfig.get_paths()["platlib"],
|
703
|
+
type=verify_destination,
|
704
|
+
help="Location of the PyWin32 installation",
|
705
|
+
)
|
706
|
+
|
707
|
+
args = parser.parse_args()
|
708
|
+
|
709
|
+
if not args.quiet:
|
710
|
+
print(f"Parsed arguments are: {args}")
|
711
|
+
|
712
|
+
if not args.install ^ args.remove:
|
713
|
+
parser.error("You need to either choose to -install or -remove!")
|
714
|
+
|
715
|
+
if args.wait is not None:
|
716
|
+
try:
|
717
|
+
os.waitpid(args.wait, 0)
|
718
|
+
except OSError:
|
719
|
+
# child already dead
|
720
|
+
pass
|
721
|
+
|
722
|
+
silent = args.silent
|
723
|
+
verbose = not args.quiet
|
724
|
+
|
725
|
+
if args.install:
|
726
|
+
install(args.destination)
|
727
|
+
|
728
|
+
if args.remove:
|
729
|
+
uninstall(args.destination)
|
730
|
+
|
731
|
+
|
732
|
+
if __name__ == "__main__":
|
733
|
+
main()
|