debugpy 1.8.5__zip → 1.8.7__zip
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.
- {debugpy-1.8.5/src/debugpy.egg-info → debugpy-1.8.7}/PKG-INFO +1 -1
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_calltip_util.py +19 -21
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_completer.py +30 -30
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_execfile.py +3 -1
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_filesystem_encoding.py +43 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_getopt.py +35 -32
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_imports_tipper.py +83 -84
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_jy_imports_tipper.py +92 -99
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_log.py +2 -3
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_saved_modules.py +51 -27
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_sys_patch.py +11 -7
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_tipper_common.py +6 -5
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/fsnotify/__init__.py +34 -38
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py +71 -69
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_import_hook.py +1 -3
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_imports.py +0 -1
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_ipython_console.py +14 -16
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_ipython_console_011.py +81 -93
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_is_thread_alive.py +3 -3
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_localhost.py +9 -8
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_log.py +33 -25
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_monkey.py +183 -170
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_monkey_qt.py +33 -29
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_override.py +6 -4
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_umd.py +19 -18
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_versioncheck.py +3 -3
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles.py +165 -138
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_coverage.py +77 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_nose.py +35 -36
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_parallel.py +22 -23
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_parallel_client.py +37 -57
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_pytest2.py +54 -52
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_unittest.py +28 -37
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_xml_rpc.py +56 -53
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/__main__pydevd_gen_debug_adapter_protocol.py +604 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/debugProtocol.json +551 -445
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/pydevd_base_schema.py +25 -29
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/pydevd_schema.py +17458 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/pydevd_schema_log.py +11 -12
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevconsole_code.py +18 -19
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_additional_thread_info.py +41 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_additional_thread_info_regular.py +328 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_api.py +263 -214
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_breakpoints.py +7 -10
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py +187 -92
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils_py311.py +105 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_code_to_source.py +46 -51
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_collect_bytecode_info.py +239 -176
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_comm.py +370 -297
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_comm_constants.py +78 -86
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_command_line_handling.py +55 -59
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_concurrency_analyser/pydevd_concurrency_logger.py +194 -58
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_concurrency_analyser/pydevd_thread_wrappers.py +2 -3
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_console.py +18 -23
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_constants.py +159 -127
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_custom_frames.py +10 -12
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.c +55527 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.pxd +15 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.pyx +803 -511
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py +18 -7
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_daemon_thread.py +32 -24
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_defaults.py +11 -13
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_dont_trace.py +16 -16
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_dont_trace_files.py +27 -2
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_exec2.py +1 -1
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_extension_api.py +4 -5
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_extension_utils.py +8 -10
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_filtering.py +50 -45
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py +462 -407
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame_utils.py +69 -61
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_gevent_integration.py +14 -16
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_import_class.py +27 -25
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_io.py +40 -42
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_json_debug_options.py +200 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_net_command.py +20 -19
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_net_command_factory_json.py +199 -108
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_net_command_factory_xml.py +121 -73
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_plugin_utils.py +208 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_process_net_command.py +206 -159
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_process_net_command_json.py +346 -334
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_referrers.py +75 -80
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_reload.py +35 -35
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_resolver.py +116 -124
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py +44 -58
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_safe_repr.py +51 -55
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_save_locals.py +4 -2
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_signature.py +24 -24
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_source_mapping.py +19 -20
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_stackless.py +45 -49
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_suspended_frames.py +61 -58
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py +23 -13
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_timeout.py +29 -31
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py +41 -11
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py +117 -55
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_traceproperty.py +11 -14
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_utils.py +90 -89
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py +106 -97
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vm_type.py +40 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_xml.py +56 -46
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_eval_cython_wrapper.py +5 -5
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_eval_main.py +71 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.c +11165 -5326
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_tracing.py +5 -6
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_modify_bytecode.py +53 -56
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py +1 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py +4 -6
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/cfg.py +6 -26
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/concrete.py +7 -21
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py +5 -24
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/instr.py +10 -34
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/peephole_opt.py +1 -4
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/__init__.py +2 -6
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_bytecode.py +3 -5
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_cfg.py +11 -31
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_code.py +2 -2
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_concrete.py +14 -41
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_flags.py +2 -4
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_instr.py +7 -18
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_misc.py +6 -18
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_peephole_opt.py +7 -18
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/util_annotation.py +1 -3
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/pydevd_fix_code.py +14 -19
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py +1929 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring_cython.c +43253 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring_cython.pxd +46 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring_cython.pyx +1935 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py +16 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_app_engine_debug_startup.py +12 -11
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_coverage.py +30 -32
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhook.py +58 -54
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookglut.py +20 -24
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookgtk.py +8 -7
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookgtk3.py +8 -6
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookpyglet.py +11 -8
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookqt4.py +21 -18
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookqt5.py +17 -15
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookqt6.py +17 -15
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhooktk.py +6 -4
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookwx.py +14 -10
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/matplotlibtools.py +30 -26
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydev_ipython/qt.py +24 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/qt_for_kernel.py +37 -34
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/qt_loaders.py +86 -73
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/version.py +7 -7
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydev_pysrc.py +1 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_run_in_console.py +23 -24
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydev_sitecustomize/sitecustomize.py +267 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevconsole.py +55 -47
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd.py +732 -508
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_always_live_program.py +40 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_check.py +1 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_test_attach_to_process.py +11 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_test_attach_to_process_linux.py +75 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py +130 -125
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_amd64.dll +0 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_amd64.pdb +0 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_pydevd.py +89 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_script.py +41 -32
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_x86.dll +0 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_x86.pdb +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_utils.hpp +1 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_version.hpp +9 -1
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_amd64.exe +0 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_amd64.pdb +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_x86.exe +0 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_x86.pdb +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/lldb_prepare.py +10 -9
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_amd64.dll +0 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_amd64.pdb +0 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_x86.dll +0 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_x86.pdb +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/__init__.py +103 -119
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/breakpoint.py +457 -516
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/compat.py +33 -15
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/crash.py +336 -281
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/debug.py +101 -131
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/disasm.py +148 -153
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/event.py +310 -302
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/interactive.py +235 -208
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/module.py +185 -218
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/process.py +428 -564
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/registry.py +54 -53
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/search.py +69 -73
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/sql.py +158 -170
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/system.py +143 -213
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/textio.py +302 -333
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/thread.py +220 -239
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/util.py +198 -177
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/__init__.py +11 -11
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/advapi32.py +1191 -713
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/context_amd64.py +248 -194
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/context_i386.py +132 -120
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/dbghelp.py +450 -346
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/defines.py +305 -286
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/gdi32.py +526 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/kernel32.py +1479 -1097
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/ntdll.py +579 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/peb_teb.py +3517 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/psapi.py +54 -31
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/shell32.py +170 -149
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/shlwapi.py +190 -108
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/user32.py +542 -437
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/version.py +489 -442
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/wtsapi32.py +83 -65
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/window.py +70 -76
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/attach.cpp +17 -9
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/compile_windows.bat +1 -1
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_file_utils.py +141 -120
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/__init__.py +1 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/django_debug.py +175 -149
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/__init__.py +1 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/__init__.py +1 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/pydevd_helpers.py +5 -5
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/pydevd_plugin_numpy_types.py +28 -28
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/pydevd_plugin_pandas_types.py +22 -30
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/pydevd_plugins_django_form_str.py +3 -2
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/jinja2_debug.py +130 -108
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/pydevd_line_validation.py +27 -14
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_tracing.py +85 -66
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/setup_pydevd_cython.py +96 -59
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_version.py +3 -3
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/messaging.py +2 -1
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/server/cli.py +32 -17
- {debugpy-1.8.5 → debugpy-1.8.7/src/debugpy.egg-info}/PKG-INFO +1 -1
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy.egg-info/SOURCES.txt +6 -1
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_filesystem_encoding.py +0 -41
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_coverage.py +0 -76
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/__main__pydevd_gen_debug_adapter_protocol.py +0 -592
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/pydevd_schema.py +0 -19514
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_additional_thread_info.py +0 -19
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_additional_thread_info_regular.py +0 -153
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.c +0 -43377
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_json_debug_options.py +0 -204
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_plugin_utils.py +0 -91
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_api.py +0 -62
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vm_type.py +0 -41
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_eval_main.py +0 -48
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydev_ipython/qt.py +0 -23
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydev_pysrc.py +0 -1
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydev_sitecustomize/sitecustomize.py +0 -237
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_always_live_program.py +0 -32
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_test_attach_to_process.py +0 -9
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_test_attach_to_process_linux.py +0 -74
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_amd64.dll +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_amd64.pdb +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_pydevd.py +0 -79
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_x86.dll +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_x86.pdb +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_amd64.exe +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_amd64.pdb +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_x86.pdb +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_amd64.dll +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_amd64.pdb +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_x86.dll +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_x86.pdb +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/gdi32.py +0 -507
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/ntdll.py +0 -539
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/peb_teb.py +0 -3435
- {debugpy-1.8.5 → debugpy-1.8.7}/DESCRIPTION.md +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/LICENSE +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/MANIFEST.in +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/README.md +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/pyproject.toml +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/setup.cfg +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/setup.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/ThirdPartyNotices.txt +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/__main__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/_pydevd_packaging.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/_util.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/force_pydevd.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/debugProtocolCustom.json +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_concurrency_analyser/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/.gitignore +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.pxd +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.pyx +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.template.pyx +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/release_mem.h +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/README.txt +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/README +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_sitecustomize/__not_in_default_pythonpath.txt +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/README.txt +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_custom_pyeval_settrace.hpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_custom_pyeval_settrace_310.hpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_custom_pyeval_settrace_311.hpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_custom_pyeval_settrace_common.hpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_settrace.hpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/python.h +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/ref_utils.hpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/.gitignore +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/attach.cpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/compile_linux.sh +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/compile_mac.sh +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/compile_manylinux.cmd +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/attach.h +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/inject_dll.cpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/py_win_helpers.hpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/run_code_in_memory.hpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/run_code_on_dllmain.cpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/stdafx.cpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/stdafx.h +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/targetver.h +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/README.md +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/__main__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/clients.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/components.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/launchers.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/servers.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/sessions.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/json.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/log.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/singleton.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/sockets.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/stacks.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/timestamp.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/util.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/launcher/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/launcher/__main__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/launcher/debuggee.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/launcher/handlers.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/launcher/output.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/launcher/winapi.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/public_api.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/server/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/server/api.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/server/attach_pid_injected.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy.egg-info/dependency_links.txt +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy.egg-info/entry_points.txt +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy.egg-info/top_level.txt +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/versioneer.py +0 -0
|
@@ -41,118 +41,118 @@ __revision__ = "$Id$"
|
|
|
41
41
|
from winappdbg.win32.defines import *
|
|
42
42
|
from winappdbg.win32.kernel32 import LocalFree
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
# ==============================================================================
|
|
45
45
|
# This is used later on to calculate the list of exported symbols.
|
|
46
46
|
_all = None
|
|
47
47
|
_all = set(vars().keys())
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
SEE_MASK_DEFAULT
|
|
53
|
-
SEE_MASK_CLASSNAME
|
|
54
|
-
SEE_MASK_CLASSKEY
|
|
55
|
-
SEE_MASK_IDLIST
|
|
56
|
-
SEE_MASK_INVOKEIDLIST
|
|
57
|
-
SEE_MASK_ICON
|
|
58
|
-
SEE_MASK_HOTKEY
|
|
59
|
-
SEE_MASK_NOCLOSEPROCESS
|
|
60
|
-
SEE_MASK_CONNECTNETDRV
|
|
61
|
-
SEE_MASK_NOASYNC
|
|
62
|
-
SEE_MASK_DOENVSUBST
|
|
63
|
-
SEE_MASK_FLAG_NO_UI
|
|
64
|
-
SEE_MASK_UNICODE
|
|
65
|
-
SEE_MASK_NO_CONSOLE
|
|
66
|
-
SEE_MASK_ASYNCOK
|
|
67
|
-
SEE_MASK_HMONITOR
|
|
68
|
-
SEE_MASK_NOZONECHECKS
|
|
69
|
-
SEE_MASK_WAITFORINPUTIDLE
|
|
70
|
-
SEE_MASK_FLAG_LOG_USAGE
|
|
71
|
-
|
|
72
|
-
SE_ERR_FNF
|
|
73
|
-
SE_ERR_PNF
|
|
74
|
-
SE_ERR_ACCESSDENIED
|
|
75
|
-
SE_ERR_OOM
|
|
76
|
-
SE_ERR_DLLNOTFOUND
|
|
77
|
-
SE_ERR_SHARE
|
|
78
|
-
SE_ERR_ASSOCINCOMPLETE
|
|
79
|
-
SE_ERR_DDETIMEOUT
|
|
80
|
-
SE_ERR_DDEFAIL
|
|
81
|
-
SE_ERR_DDEBUSY
|
|
82
|
-
SE_ERR_NOASSOC
|
|
48
|
+
# ==============================================================================
|
|
49
|
+
|
|
50
|
+
# --- Constants ----------------------------------------------------------------
|
|
51
|
+
|
|
52
|
+
SEE_MASK_DEFAULT = 0x00000000
|
|
53
|
+
SEE_MASK_CLASSNAME = 0x00000001
|
|
54
|
+
SEE_MASK_CLASSKEY = 0x00000003
|
|
55
|
+
SEE_MASK_IDLIST = 0x00000004
|
|
56
|
+
SEE_MASK_INVOKEIDLIST = 0x0000000C
|
|
57
|
+
SEE_MASK_ICON = 0x00000010
|
|
58
|
+
SEE_MASK_HOTKEY = 0x00000020
|
|
59
|
+
SEE_MASK_NOCLOSEPROCESS = 0x00000040
|
|
60
|
+
SEE_MASK_CONNECTNETDRV = 0x00000080
|
|
61
|
+
SEE_MASK_NOASYNC = 0x00000100
|
|
62
|
+
SEE_MASK_DOENVSUBST = 0x00000200
|
|
63
|
+
SEE_MASK_FLAG_NO_UI = 0x00000400
|
|
64
|
+
SEE_MASK_UNICODE = 0x00004000
|
|
65
|
+
SEE_MASK_NO_CONSOLE = 0x00008000
|
|
66
|
+
SEE_MASK_ASYNCOK = 0x00100000
|
|
67
|
+
SEE_MASK_HMONITOR = 0x00200000
|
|
68
|
+
SEE_MASK_NOZONECHECKS = 0x00800000
|
|
69
|
+
SEE_MASK_WAITFORINPUTIDLE = 0x02000000
|
|
70
|
+
SEE_MASK_FLAG_LOG_USAGE = 0x04000000
|
|
71
|
+
|
|
72
|
+
SE_ERR_FNF = 2
|
|
73
|
+
SE_ERR_PNF = 3
|
|
74
|
+
SE_ERR_ACCESSDENIED = 5
|
|
75
|
+
SE_ERR_OOM = 8
|
|
76
|
+
SE_ERR_DLLNOTFOUND = 32
|
|
77
|
+
SE_ERR_SHARE = 26
|
|
78
|
+
SE_ERR_ASSOCINCOMPLETE = 27
|
|
79
|
+
SE_ERR_DDETIMEOUT = 28
|
|
80
|
+
SE_ERR_DDEFAIL = 29
|
|
81
|
+
SE_ERR_DDEBUSY = 30
|
|
82
|
+
SE_ERR_NOASSOC = 31
|
|
83
83
|
|
|
84
84
|
SHGFP_TYPE_CURRENT = 0
|
|
85
85
|
SHGFP_TYPE_DEFAULT = 1
|
|
86
86
|
|
|
87
|
-
CSIDL_DESKTOP
|
|
88
|
-
CSIDL_INTERNET
|
|
89
|
-
CSIDL_PROGRAMS
|
|
90
|
-
CSIDL_CONTROLS
|
|
91
|
-
CSIDL_PRINTERS
|
|
92
|
-
CSIDL_PERSONAL
|
|
93
|
-
CSIDL_FAVORITES
|
|
94
|
-
CSIDL_STARTUP
|
|
95
|
-
CSIDL_RECENT
|
|
96
|
-
CSIDL_SENDTO
|
|
97
|
-
CSIDL_BITBUCKET
|
|
98
|
-
CSIDL_STARTMENU
|
|
99
|
-
CSIDL_MYDOCUMENTS
|
|
100
|
-
CSIDL_MYMUSIC
|
|
101
|
-
CSIDL_MYVIDEO
|
|
102
|
-
CSIDL_DESKTOPDIRECTORY
|
|
103
|
-
CSIDL_DRIVES
|
|
104
|
-
CSIDL_NETWORK
|
|
105
|
-
CSIDL_NETHOOD
|
|
106
|
-
CSIDL_FONTS
|
|
107
|
-
CSIDL_TEMPLATES
|
|
108
|
-
CSIDL_COMMON_STARTMENU
|
|
109
|
-
CSIDL_COMMON_PROGRAMS
|
|
110
|
-
CSIDL_COMMON_STARTUP
|
|
111
|
-
CSIDL_COMMON_DESKTOPDIRECTORY
|
|
112
|
-
CSIDL_APPDATA
|
|
113
|
-
CSIDL_PRINTHOOD
|
|
114
|
-
CSIDL_LOCAL_APPDATA
|
|
115
|
-
CSIDL_ALTSTARTUP
|
|
116
|
-
CSIDL_COMMON_ALTSTARTUP
|
|
117
|
-
CSIDL_COMMON_FAVORITES
|
|
118
|
-
CSIDL_INTERNET_CACHE
|
|
119
|
-
CSIDL_COOKIES
|
|
120
|
-
CSIDL_HISTORY
|
|
121
|
-
CSIDL_COMMON_APPDATA
|
|
122
|
-
CSIDL_WINDOWS
|
|
123
|
-
CSIDL_SYSTEM
|
|
124
|
-
CSIDL_PROGRAM_FILES
|
|
125
|
-
CSIDL_MYPICTURES
|
|
126
|
-
CSIDL_PROFILE
|
|
127
|
-
CSIDL_SYSTEMX86
|
|
128
|
-
CSIDL_PROGRAM_FILESX86
|
|
129
|
-
CSIDL_PROGRAM_FILES_COMMON
|
|
130
|
-
CSIDL_PROGRAM_FILES_COMMONX86
|
|
131
|
-
CSIDL_COMMON_TEMPLATES
|
|
132
|
-
CSIDL_COMMON_DOCUMENTS
|
|
133
|
-
CSIDL_COMMON_ADMINTOOLS
|
|
134
|
-
CSIDL_ADMINTOOLS
|
|
135
|
-
CSIDL_CONNECTIONS
|
|
136
|
-
CSIDL_COMMON_MUSIC
|
|
137
|
-
CSIDL_COMMON_PICTURES
|
|
138
|
-
CSIDL_COMMON_VIDEO
|
|
139
|
-
CSIDL_RESOURCES
|
|
140
|
-
CSIDL_RESOURCES_LOCALIZED
|
|
141
|
-
CSIDL_COMMON_OEM_LINKS
|
|
142
|
-
CSIDL_CDBURN_AREA
|
|
143
|
-
CSIDL_COMPUTERSNEARME
|
|
144
|
-
CSIDL_PROFILES
|
|
145
|
-
|
|
146
|
-
CSIDL_FOLDER_MASK
|
|
147
|
-
|
|
148
|
-
CSIDL_FLAG_PER_USER_INIT
|
|
149
|
-
CSIDL_FLAG_NO_ALIAS
|
|
150
|
-
CSIDL_FLAG_DONT_VERIFY
|
|
151
|
-
CSIDL_FLAG_CREATE
|
|
152
|
-
|
|
153
|
-
CSIDL_FLAG_MASK
|
|
154
|
-
|
|
155
|
-
|
|
87
|
+
CSIDL_DESKTOP = 0x0000
|
|
88
|
+
CSIDL_INTERNET = 0x0001
|
|
89
|
+
CSIDL_PROGRAMS = 0x0002
|
|
90
|
+
CSIDL_CONTROLS = 0x0003
|
|
91
|
+
CSIDL_PRINTERS = 0x0004
|
|
92
|
+
CSIDL_PERSONAL = 0x0005
|
|
93
|
+
CSIDL_FAVORITES = 0x0006
|
|
94
|
+
CSIDL_STARTUP = 0x0007
|
|
95
|
+
CSIDL_RECENT = 0x0008
|
|
96
|
+
CSIDL_SENDTO = 0x0009
|
|
97
|
+
CSIDL_BITBUCKET = 0x000A
|
|
98
|
+
CSIDL_STARTMENU = 0x000B
|
|
99
|
+
CSIDL_MYDOCUMENTS = CSIDL_PERSONAL
|
|
100
|
+
CSIDL_MYMUSIC = 0x000D
|
|
101
|
+
CSIDL_MYVIDEO = 0x000E
|
|
102
|
+
CSIDL_DESKTOPDIRECTORY = 0x0010
|
|
103
|
+
CSIDL_DRIVES = 0x0011
|
|
104
|
+
CSIDL_NETWORK = 0x0012
|
|
105
|
+
CSIDL_NETHOOD = 0x0013
|
|
106
|
+
CSIDL_FONTS = 0x0014
|
|
107
|
+
CSIDL_TEMPLATES = 0x0015
|
|
108
|
+
CSIDL_COMMON_STARTMENU = 0x0016
|
|
109
|
+
CSIDL_COMMON_PROGRAMS = 0x0017
|
|
110
|
+
CSIDL_COMMON_STARTUP = 0x0018
|
|
111
|
+
CSIDL_COMMON_DESKTOPDIRECTORY = 0x0019
|
|
112
|
+
CSIDL_APPDATA = 0x001A
|
|
113
|
+
CSIDL_PRINTHOOD = 0x001B
|
|
114
|
+
CSIDL_LOCAL_APPDATA = 0x001C
|
|
115
|
+
CSIDL_ALTSTARTUP = 0x001D
|
|
116
|
+
CSIDL_COMMON_ALTSTARTUP = 0x001E
|
|
117
|
+
CSIDL_COMMON_FAVORITES = 0x001F
|
|
118
|
+
CSIDL_INTERNET_CACHE = 0x0020
|
|
119
|
+
CSIDL_COOKIES = 0x0021
|
|
120
|
+
CSIDL_HISTORY = 0x0022
|
|
121
|
+
CSIDL_COMMON_APPDATA = 0x0023
|
|
122
|
+
CSIDL_WINDOWS = 0x0024
|
|
123
|
+
CSIDL_SYSTEM = 0x0025
|
|
124
|
+
CSIDL_PROGRAM_FILES = 0x0026
|
|
125
|
+
CSIDL_MYPICTURES = 0x0027
|
|
126
|
+
CSIDL_PROFILE = 0x0028
|
|
127
|
+
CSIDL_SYSTEMX86 = 0x0029
|
|
128
|
+
CSIDL_PROGRAM_FILESX86 = 0x002A
|
|
129
|
+
CSIDL_PROGRAM_FILES_COMMON = 0x002B
|
|
130
|
+
CSIDL_PROGRAM_FILES_COMMONX86 = 0x002C
|
|
131
|
+
CSIDL_COMMON_TEMPLATES = 0x002D
|
|
132
|
+
CSIDL_COMMON_DOCUMENTS = 0x002E
|
|
133
|
+
CSIDL_COMMON_ADMINTOOLS = 0x002F
|
|
134
|
+
CSIDL_ADMINTOOLS = 0x0030
|
|
135
|
+
CSIDL_CONNECTIONS = 0x0031
|
|
136
|
+
CSIDL_COMMON_MUSIC = 0x0035
|
|
137
|
+
CSIDL_COMMON_PICTURES = 0x0036
|
|
138
|
+
CSIDL_COMMON_VIDEO = 0x0037
|
|
139
|
+
CSIDL_RESOURCES = 0x0038
|
|
140
|
+
CSIDL_RESOURCES_LOCALIZED = 0x0039
|
|
141
|
+
CSIDL_COMMON_OEM_LINKS = 0x003A
|
|
142
|
+
CSIDL_CDBURN_AREA = 0x003B
|
|
143
|
+
CSIDL_COMPUTERSNEARME = 0x003D
|
|
144
|
+
CSIDL_PROFILES = 0x003E
|
|
145
|
+
|
|
146
|
+
CSIDL_FOLDER_MASK = 0x00FF
|
|
147
|
+
|
|
148
|
+
CSIDL_FLAG_PER_USER_INIT = 0x0800
|
|
149
|
+
CSIDL_FLAG_NO_ALIAS = 0x1000
|
|
150
|
+
CSIDL_FLAG_DONT_VERIFY = 0x4000
|
|
151
|
+
CSIDL_FLAG_CREATE = 0x8000
|
|
152
|
+
|
|
153
|
+
CSIDL_FLAG_MASK = 0xFF00
|
|
154
|
+
|
|
155
|
+
# --- Structures ---------------------------------------------------------------
|
|
156
156
|
|
|
157
157
|
# typedef struct _SHELLEXECUTEINFO {
|
|
158
158
|
# DWORD cbSize;
|
|
@@ -175,34 +175,39 @@ CSIDL_FLAG_MASK = 0xff00
|
|
|
175
175
|
# HANDLE hProcess;
|
|
176
176
|
# } SHELLEXECUTEINFO, *LPSHELLEXECUTEINFO;
|
|
177
177
|
|
|
178
|
+
|
|
178
179
|
class SHELLEXECUTEINFO(Structure):
|
|
179
180
|
_fields_ = [
|
|
180
|
-
("cbSize",
|
|
181
|
-
("fMask",
|
|
182
|
-
("hwnd",
|
|
183
|
-
("lpVerb",
|
|
184
|
-
("lpFile",
|
|
181
|
+
("cbSize", DWORD),
|
|
182
|
+
("fMask", ULONG),
|
|
183
|
+
("hwnd", HWND),
|
|
184
|
+
("lpVerb", LPSTR),
|
|
185
|
+
("lpFile", LPSTR),
|
|
185
186
|
("lpParameters", LPSTR),
|
|
186
|
-
("lpDirectory",
|
|
187
|
-
("nShow",
|
|
188
|
-
("hInstApp",
|
|
189
|
-
("lpIDList",
|
|
190
|
-
("lpClass",
|
|
191
|
-
("hkeyClass",
|
|
192
|
-
("dwHotKey",
|
|
193
|
-
("hIcon",
|
|
194
|
-
("hProcess",
|
|
187
|
+
("lpDirectory", LPSTR),
|
|
188
|
+
("nShow", ctypes.c_int),
|
|
189
|
+
("hInstApp", HINSTANCE),
|
|
190
|
+
("lpIDList", LPVOID),
|
|
191
|
+
("lpClass", LPSTR),
|
|
192
|
+
("hkeyClass", HKEY),
|
|
193
|
+
("dwHotKey", DWORD),
|
|
194
|
+
("hIcon", HANDLE),
|
|
195
|
+
("hProcess", HANDLE),
|
|
195
196
|
]
|
|
196
197
|
|
|
197
198
|
def __get_hMonitor(self):
|
|
198
199
|
return self.hIcon
|
|
200
|
+
|
|
199
201
|
def __set_hMonitor(self, hMonitor):
|
|
200
202
|
self.hIcon = hMonitor
|
|
203
|
+
|
|
201
204
|
hMonitor = property(__get_hMonitor, __set_hMonitor)
|
|
202
205
|
|
|
206
|
+
|
|
203
207
|
LPSHELLEXECUTEINFO = POINTER(SHELLEXECUTEINFO)
|
|
204
208
|
|
|
205
|
-
|
|
209
|
+
# --- shell32.dll --------------------------------------------------------------
|
|
210
|
+
|
|
206
211
|
|
|
207
212
|
# LPWSTR *CommandLineToArgvW(
|
|
208
213
|
# LPCWSTR lpCmdLine,
|
|
@@ -211,7 +216,7 @@ LPSHELLEXECUTEINFO = POINTER(SHELLEXECUTEINFO)
|
|
|
211
216
|
def CommandLineToArgvW(lpCmdLine):
|
|
212
217
|
_CommandLineToArgvW = windll.shell32.CommandLineToArgvW
|
|
213
218
|
_CommandLineToArgvW.argtypes = [LPVOID, POINTER(ctypes.c_int)]
|
|
214
|
-
_CommandLineToArgvW.restype
|
|
219
|
+
_CommandLineToArgvW.restype = LPVOID
|
|
215
220
|
|
|
216
221
|
if not lpCmdLine:
|
|
217
222
|
lpCmdLine = None
|
|
@@ -224,13 +229,14 @@ def CommandLineToArgvW(lpCmdLine):
|
|
|
224
229
|
argc = argc.value
|
|
225
230
|
if argc <= 0:
|
|
226
231
|
raise ctypes.WinError()
|
|
227
|
-
argv = ctypes.cast(argv, ctypes.POINTER(LPWSTR * argc)
|
|
228
|
-
argv = [
|
|
232
|
+
argv = ctypes.cast(argv, ctypes.POINTER(LPWSTR * argc))
|
|
233
|
+
argv = [argv.contents[i] for i in compat.xrange(0, argc)]
|
|
229
234
|
finally:
|
|
230
235
|
if vptr is not None:
|
|
231
236
|
LocalFree(vptr)
|
|
232
237
|
return argv
|
|
233
238
|
|
|
239
|
+
|
|
234
240
|
def CommandLineToArgvA(lpCmdLine):
|
|
235
241
|
t_ansi = GuessStringType.t_ansi
|
|
236
242
|
t_unicode = GuessStringType.t_unicode
|
|
@@ -240,8 +246,10 @@ def CommandLineToArgvA(lpCmdLine):
|
|
|
240
246
|
cmdline = lpCmdLine
|
|
241
247
|
return [t_ansi(x) for x in CommandLineToArgvW(cmdline)]
|
|
242
248
|
|
|
249
|
+
|
|
243
250
|
CommandLineToArgv = GuessStringType(CommandLineToArgvA, CommandLineToArgvW)
|
|
244
251
|
|
|
252
|
+
|
|
245
253
|
# HINSTANCE ShellExecute(
|
|
246
254
|
# HWND hwnd,
|
|
247
255
|
# LPCTSTR lpOperation,
|
|
@@ -250,34 +258,37 @@ CommandLineToArgv = GuessStringType(CommandLineToArgvA, CommandLineToArgvW)
|
|
|
250
258
|
# LPCTSTR lpDirectory,
|
|
251
259
|
# INT nShowCmd
|
|
252
260
|
# );
|
|
253
|
-
def ShellExecuteA(hwnd
|
|
261
|
+
def ShellExecuteA(hwnd=None, lpOperation=None, lpFile=None, lpParameters=None, lpDirectory=None, nShowCmd=None):
|
|
254
262
|
_ShellExecuteA = windll.shell32.ShellExecuteA
|
|
255
263
|
_ShellExecuteA.argtypes = [HWND, LPSTR, LPSTR, LPSTR, LPSTR, INT]
|
|
256
|
-
_ShellExecuteA.restype
|
|
264
|
+
_ShellExecuteA.restype = HINSTANCE
|
|
257
265
|
|
|
258
266
|
if not nShowCmd:
|
|
259
267
|
nShowCmd = 0
|
|
260
268
|
success = _ShellExecuteA(hwnd, lpOperation, lpFile, lpParameters, lpDirectory, nShowCmd)
|
|
261
269
|
success = ctypes.cast(success, c_int)
|
|
262
270
|
success = success.value
|
|
263
|
-
if not success > 32:
|
|
271
|
+
if not success > 32: # weird! isn't it?
|
|
264
272
|
raise ctypes.WinError(success)
|
|
265
273
|
|
|
266
|
-
|
|
274
|
+
|
|
275
|
+
def ShellExecuteW(hwnd=None, lpOperation=None, lpFile=None, lpParameters=None, lpDirectory=None, nShowCmd=None):
|
|
267
276
|
_ShellExecuteW = windll.shell32.ShellExecuteW
|
|
268
277
|
_ShellExecuteW.argtypes = [HWND, LPWSTR, LPWSTR, LPWSTR, LPWSTR, INT]
|
|
269
|
-
_ShellExecuteW.restype
|
|
278
|
+
_ShellExecuteW.restype = HINSTANCE
|
|
270
279
|
|
|
271
280
|
if not nShowCmd:
|
|
272
281
|
nShowCmd = 0
|
|
273
282
|
success = _ShellExecuteW(hwnd, lpOperation, lpFile, lpParameters, lpDirectory, nShowCmd)
|
|
274
283
|
success = ctypes.cast(success, c_int)
|
|
275
284
|
success = success.value
|
|
276
|
-
if not success > 32:
|
|
285
|
+
if not success > 32: # weird! isn't it?
|
|
277
286
|
raise ctypes.WinError(success)
|
|
278
287
|
|
|
288
|
+
|
|
279
289
|
ShellExecute = GuessStringType(ShellExecuteA, ShellExecuteW)
|
|
280
290
|
|
|
291
|
+
|
|
281
292
|
# BOOL ShellExecuteEx(
|
|
282
293
|
# __inout LPSHELLEXECUTEINFO lpExecInfo
|
|
283
294
|
# );
|
|
@@ -289,53 +300,59 @@ def ShellExecuteEx(lpExecInfo):
|
|
|
289
300
|
else:
|
|
290
301
|
raise TypeError("Expected SHELLEXECUTEINFOA or SHELLEXECUTEINFOW, got %s instead" % type(lpExecInfo))
|
|
291
302
|
|
|
303
|
+
|
|
292
304
|
def ShellExecuteExA(lpExecInfo):
|
|
293
305
|
_ShellExecuteExA = windll.shell32.ShellExecuteExA
|
|
294
306
|
_ShellExecuteExA.argtypes = [LPSHELLEXECUTEINFOA]
|
|
295
|
-
_ShellExecuteExA.restype
|
|
307
|
+
_ShellExecuteExA.restype = BOOL
|
|
296
308
|
_ShellExecuteExA.errcheck = RaiseIfZero
|
|
297
309
|
_ShellExecuteExA(byref(lpExecInfo))
|
|
298
310
|
|
|
311
|
+
|
|
299
312
|
def ShellExecuteExW(lpExecInfo):
|
|
300
313
|
_ShellExecuteExW = windll.shell32.ShellExecuteExW
|
|
301
314
|
_ShellExecuteExW.argtypes = [LPSHELLEXECUTEINFOW]
|
|
302
|
-
_ShellExecuteExW.restype
|
|
315
|
+
_ShellExecuteExW.restype = BOOL
|
|
303
316
|
_ShellExecuteExW.errcheck = RaiseIfZero
|
|
304
317
|
_ShellExecuteExW(byref(lpExecInfo))
|
|
305
318
|
|
|
319
|
+
|
|
306
320
|
# HINSTANCE FindExecutable(
|
|
307
321
|
# __in LPCTSTR lpFile,
|
|
308
322
|
# __in_opt LPCTSTR lpDirectory,
|
|
309
323
|
# __out LPTSTR lpResult
|
|
310
324
|
# );
|
|
311
|
-
def FindExecutableA(lpFile, lpDirectory
|
|
325
|
+
def FindExecutableA(lpFile, lpDirectory=None):
|
|
312
326
|
_FindExecutableA = windll.shell32.FindExecutableA
|
|
313
327
|
_FindExecutableA.argtypes = [LPSTR, LPSTR, LPSTR]
|
|
314
|
-
_FindExecutableA.restype
|
|
328
|
+
_FindExecutableA.restype = HINSTANCE
|
|
315
329
|
|
|
316
330
|
lpResult = ctypes.create_string_buffer(MAX_PATH)
|
|
317
331
|
success = _FindExecutableA(lpFile, lpDirectory, lpResult)
|
|
318
332
|
success = ctypes.cast(success, ctypes.c_void_p)
|
|
319
333
|
success = success.value
|
|
320
|
-
if not success > 32:
|
|
334
|
+
if not success > 32: # weird! isn't it?
|
|
321
335
|
raise ctypes.WinError(success)
|
|
322
336
|
return lpResult.value
|
|
323
337
|
|
|
324
|
-
|
|
338
|
+
|
|
339
|
+
def FindExecutableW(lpFile, lpDirectory=None):
|
|
325
340
|
_FindExecutableW = windll.shell32.FindExecutableW
|
|
326
341
|
_FindExecutableW.argtypes = [LPWSTR, LPWSTR, LPWSTR]
|
|
327
|
-
_FindExecutableW.restype
|
|
342
|
+
_FindExecutableW.restype = HINSTANCE
|
|
328
343
|
|
|
329
344
|
lpResult = ctypes.create_unicode_buffer(MAX_PATH)
|
|
330
345
|
success = _FindExecutableW(lpFile, lpDirectory, lpResult)
|
|
331
346
|
success = ctypes.cast(success, ctypes.c_void_p)
|
|
332
347
|
success = success.value
|
|
333
|
-
if not success > 32:
|
|
348
|
+
if not success > 32: # weird! isn't it?
|
|
334
349
|
raise ctypes.WinError(success)
|
|
335
350
|
return lpResult.value
|
|
336
351
|
|
|
352
|
+
|
|
337
353
|
FindExecutable = GuessStringType(FindExecutableA, FindExecutableW)
|
|
338
354
|
|
|
355
|
+
|
|
339
356
|
# HRESULT SHGetFolderPath(
|
|
340
357
|
# __in HWND hwndOwner,
|
|
341
358
|
# __in int nFolder,
|
|
@@ -343,40 +360,44 @@ FindExecutable = GuessStringType(FindExecutableA, FindExecutableW)
|
|
|
343
360
|
# __in DWORD dwFlags,
|
|
344
361
|
# __out LPTSTR pszPath
|
|
345
362
|
# );
|
|
346
|
-
def SHGetFolderPathA(nFolder, hToken
|
|
347
|
-
_SHGetFolderPathA = windll.shell32.SHGetFolderPathA
|
|
363
|
+
def SHGetFolderPathA(nFolder, hToken=None, dwFlags=SHGFP_TYPE_CURRENT):
|
|
364
|
+
_SHGetFolderPathA = windll.shell32.SHGetFolderPathA # shfolder.dll in older win versions
|
|
348
365
|
_SHGetFolderPathA.argtypes = [HWND, ctypes.c_int, HANDLE, DWORD, LPSTR]
|
|
349
|
-
_SHGetFolderPathA.restype
|
|
350
|
-
_SHGetFolderPathA.errcheck = RaiseIfNotZero
|
|
366
|
+
_SHGetFolderPathA.restype = HRESULT
|
|
367
|
+
_SHGetFolderPathA.errcheck = RaiseIfNotZero # S_OK == 0
|
|
351
368
|
|
|
352
369
|
pszPath = ctypes.create_string_buffer(MAX_PATH + 1)
|
|
353
370
|
_SHGetFolderPathA(None, nFolder, hToken, dwFlags, pszPath)
|
|
354
371
|
return pszPath.value
|
|
355
372
|
|
|
356
|
-
|
|
357
|
-
|
|
373
|
+
|
|
374
|
+
def SHGetFolderPathW(nFolder, hToken=None, dwFlags=SHGFP_TYPE_CURRENT):
|
|
375
|
+
_SHGetFolderPathW = windll.shell32.SHGetFolderPathW # shfolder.dll in older win versions
|
|
358
376
|
_SHGetFolderPathW.argtypes = [HWND, ctypes.c_int, HANDLE, DWORD, LPWSTR]
|
|
359
|
-
_SHGetFolderPathW.restype
|
|
360
|
-
_SHGetFolderPathW.errcheck = RaiseIfNotZero
|
|
377
|
+
_SHGetFolderPathW.restype = HRESULT
|
|
378
|
+
_SHGetFolderPathW.errcheck = RaiseIfNotZero # S_OK == 0
|
|
361
379
|
|
|
362
380
|
pszPath = ctypes.create_unicode_buffer(MAX_PATH + 1)
|
|
363
381
|
_SHGetFolderPathW(None, nFolder, hToken, dwFlags, pszPath)
|
|
364
382
|
return pszPath.value
|
|
365
383
|
|
|
384
|
+
|
|
366
385
|
SHGetFolderPath = DefaultStringType(SHGetFolderPathA, SHGetFolderPathW)
|
|
367
386
|
|
|
387
|
+
|
|
368
388
|
# BOOL IsUserAnAdmin(void);
|
|
369
389
|
def IsUserAnAdmin():
|
|
370
390
|
# Supposedly, IsUserAnAdmin() is deprecated in Vista.
|
|
371
391
|
# But I tried it on Windows 7 and it works just fine.
|
|
372
392
|
_IsUserAnAdmin = windll.shell32.IsUserAnAdmin
|
|
373
393
|
_IsUserAnAdmin.argtypes = []
|
|
374
|
-
_IsUserAnAdmin.restype
|
|
394
|
+
_IsUserAnAdmin.restype = bool
|
|
375
395
|
return _IsUserAnAdmin()
|
|
376
396
|
|
|
377
|
-
|
|
397
|
+
|
|
398
|
+
# ==============================================================================
|
|
378
399
|
# This calculates the list of exported symbols.
|
|
379
400
|
_all = set(vars().keys()).difference(_all)
|
|
380
|
-
__all__ = [_x for _x in _all if not _x.startswith(
|
|
401
|
+
__all__ = [_x for _x in _all if not _x.startswith("_")]
|
|
381
402
|
__all__.sort()
|
|
382
|
-
|
|
403
|
+
# ==============================================================================
|