Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command_with_path = shutil.which(self.command) breaks Windows command support #60

Open
Stefanhg opened this issue Sep 30, 2023 · 0 comments

Comments

@Stefanhg
Copy link

Describe the bug
When executing terminal commands the command_with_path = shutil.which(self.command) breaks Windows support
To Reproduce

import shutil
shutil.which("cd")
shutil.which("help")

Expected behavior
cd command will return nothing because in Windows each command does not have a file attached to it.
help does have a executable and will return a path

Stefanhg added a commit to Stefanhg/wexpect that referenced this issue Sep 30, 2023
Breaks support for sending Windows commands.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant