Skip to content

Commit

Permalink
Update python.py
Browse files Browse the repository at this point in the history
Resolves issue: OpenInterpreter#635
  • Loading branch information
leifktaylor authored Oct 15, 2023
1 parent f52e83b commit 50aede2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions interpreter/code_interpreters/languages/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Python(SubprocessCodeInterpreter):

def __init__(self):
super().__init__()
self.start_cmd = shlex.quote(sys.executable) + " -i -q -u"
self.start_cmd = shlex.quote(sys.executable).strip("'") + " -i -q -u"

def preprocess_code(self, code):
return preprocess_python(code)
Expand Down Expand Up @@ -150,4 +150,4 @@ def wrap_in_try_except(code):
parsed_code.body = [try_except]

# Convert the modified AST back to source code
return ast.unparse(parsed_code)
return ast.unparse(parsed_code)

0 comments on commit 50aede2

Please sign in to comment.