mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-23 00:44:22 +01:00
Fix for 'requires string as left operand, not PosixPath'
This commit is contained in:
@@ -100,7 +100,7 @@ def execute_shell(command_line: str) -> str:
|
|||||||
"""
|
"""
|
||||||
current_dir = os.getcwd()
|
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)
|
work_dir = os.path.join(os.getcwd(), WORKING_DIRECTORY)
|
||||||
os.chdir(work_dir)
|
os.chdir(work_dir)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user