Qix-/better-exceptions

Command line not being read on Windows

Open

#27 aberto em 28 de mar. de 2017

Ver no GitHub
 (1 comment) (0 reactions) (0 assignees)Python (210 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (4.489 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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 :)

Guia do colaborador