mirror of
https://github.com/microsoft/autogen.git
synced 2025-09-27 00:58:52 +00:00
Update listdir() in sample code to take correct args (#2261)
Executing this code (Python 3.11, MacOS) returns error `TypeError: listdir: path should be string, bytes, os.PathLike, integer or None, not TemporaryDirectory` Using the string name of the dir works better.
This commit is contained in:
parent
6c3d779e99
commit
1c22a93535
@ -198,7 +198,7 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"import os\n",
|
"import os\n",
|
||||||
"\n",
|
"\n",
|
||||||
"print(os.listdir(temp_dir))\n",
|
"print(os.listdir(temp_dir.name))\n",
|
||||||
"# We can see the output scatter.png and the code file generated by the agent."
|
"# We can see the output scatter.png and the code file generated by the agent."
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user