Qix-/better-exceptions

Command line not being read on Windows

Open

#27 建立於 2017年3月28日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)Python (210 fork)batch import
enhancementhelp wanted

倉庫指標

Star
 (4,489 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

On POSIX systems we can (ab)use ps to find the command line arguments that were used when calling the process.

However on windows, we're going to have to use ctypes and call CommandLineToArgvW.

There is a placeholder conditional for windows in there right now, but it currently doesn't do anything. This makes #17 only work on POSIX systems for now, and ideally it'd be great to be able to expand this functionality to Windows.

However, I don't currently have a windows box to test this on :)

貢獻者指南