Skip to content

Commit

Permalink
Merge pull request #1625 from alexonab/patch-4
Browse files Browse the repository at this point in the history
Fix for 'requires string as left operand, not PosixPath'
  • Loading branch information
richbeales authored Apr 15, 2023
2 parents 36019cb + 712982a commit b171774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autogpt/commands/execute_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def execute_shell(command_line: str) -> str:
"""
current_dir = os.getcwd()

if WORKING_DIRECTORY not in current_dir: # Change dir into workspace if necessary
if str(WORKING_DIRECTORY) not in current_dir: # Change dir into workspace if necessary
work_dir = os.path.join(os.getcwd(), WORKING_DIRECTORY)
os.chdir(work_dir)

Expand Down

0 comments on commit b171774

Please sign in to comment.