Added conditional support for Windows, computer not found error
Changed one of the conditional statements to account for the import of computer module.
Fixes #1225
Pre-Submission Checklist (optional but appreciated):
- [ ] I have included relevant documentation updates (stored in /docs)
- [x] I have read
docs/CONTRIBUTING.md - [x] I have read
docs/ROADMAP.md
OS Tests (optional but appreciated):
- [x] Tested on Windows
- [ ] Tested on MacOS
- [ ] Tested on Linux
Hi @Abdullah-Gohar! Thanks for this PR, I think we might want to solve this issue in another way though. Some folks might want to run a lightweight Open Interpreter in Python without the computer API (I think we should remove reference to it in the system message for this reason, so it won't try to use it unless it has access to it).
We could make it simply print instructions for importing the computer API (initializing interpreter with interpreter = OpenInterpreter(import_computer_api=True)) if "computer" is spotted in the code, and import_computer_api is False. Do you think those solutions would work?