Closed
Description
Treat cygwin like linux, because its ps command is limited and the proc file system works.
src/shellingham/posix/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/shellingham/posix/__init__.py b/src/shellingham/posix/__init__.py
index ec27b3a..1f4b80c 100644
--- a/src/shellingham/posix/__init__.py
+++ b/src/shellingham/posix/__init__.py
@@ -6,7 +6,7 @@ from .._consts import SHELL_NAMES
def _get_process_mapping():
system = platform.system()
- if system == 'Linux':
+ if system in ('Linux', 'CYGWIN_NT-6.1'):
from . import linux as impl
else:
from . import _default as impl
I think the "6.1" string may change a couple times a year. It may be better to do:
if system == 'Linux' or system.startswith('CYGWIN_NT'):
Metadata
Assignees
Labels
No labels