[Minor] Raise exception for wrong import (#1409)

This commit is contained in:
Ying Sheng
2024-09-12 23:02:36 -07:00
committed by GitHub
parent 68be2f6d3b
commit 9a903a8784

3
__init__.py Normal file
View File

@@ -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."
)