From 9a903a878413dd6ef894ff481f28294e9293a9a4 Mon Sep 17 00:00:00 2001 From: Ying Sheng Date: Thu, 12 Sep 2024 23:02:36 -0700 Subject: [PATCH] [Minor] Raise exception for wrong import (#1409) --- __init__.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 __init__.py diff --git a/__init__.py b/__init__.py new file mode 100644 index 000000000..45323abef --- /dev/null +++ b/__init__.py @@ -0,0 +1,3 @@ +raise Exception( + "You imported 'sglang' from the git repo root directory 'sglang', which is incorrect. You should import it from 'sglang/python/sglang'. Please do not run your scripts adjacent to the git repo root directory." +)