Skip to content

Commit

Permalink
Merge pull request OpenInterpreter#8 from nirvor/main
Browse files Browse the repository at this point in the history
Update interpreter.py - windows file system adjustment (will add .toml after this and reinstate readline import in interpreter.py)
  • Loading branch information
KillianLucas authored Aug 13, 2023
2 parents 8b6a919 + d8115bb commit f9e6881
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion interpreter/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
import openai
import getpass
import requests
import readline
try:
if platform.system() == 'Windows':
import pyreadline3 as readline
else:
import readline
except ImportError:
print("Windows file system detected, please pip install pyreadline3.")
import urllib.parse
import tokentrim as tt
from rich import print
Expand Down

0 comments on commit f9e6881

Please sign in to comment.