File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -235,17 +235,18 @@ overriden in individual `dap-python' launch configurations."
235235 ; ; :args "" -> :args nil -> {"args": null}; to handle that edge
236236 ; ; case, use the empty vector instead.
237237 (plist-put conf :args []))))
238- (unless program
239- (cl-remf conf :target-module )
240- (cl-remf conf :program ))
238+ (cl-remf conf :target-module )
239+ (cl-remf conf :program )
240+ (when program
241+ (plist-put conf :program program))
242+
241243 (unless module
242244 (cl-remf conf :module ))
243245 (unless (plist-get conf :cwd )
244246 (cl-remf conf :cwd ))
245247
246248 (plist-put conf :dap-server-path
247249 (list python-executable " -m" " debugpy.adapter" ))))
248- (plist-put conf :program program)
249250 conf))
250251
251252(defun dap-python--normalize-args (args )
You can’t perform that action at this time.
0 commit comments