Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

fix the simple example

Nick Sweeting55fa82f1b56b
diff --git a/examples/simple.py b/examples/simple.py
index 0d586b8bf..c755e49fb 100644
--- a/examples/simple.py
+++ b/examples/simple.py
@@ -1,3 +1,8 @@
+import os
+import sys
+
+sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
+
import asyncio
from dotenv import load_dotenv