Skip to content

Commit

Permalink
Use os.sep in filter_traceback function (#3322)
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoly Myachev <[email protected]>
  • Loading branch information
anmyachev authored Jan 31, 2025
1 parent ccf97fd commit 3467f99
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/triton/compiler/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,10 @@ def filter_traceback(e: BaseException):
filter_traceback(e.__context__)

# If a user has a file that matches one of these, they're out of luck.
sep = os.sep
BAD_FILES = [
"/triton/compiler/code_generator.py",
"/ast.py",
f"{sep}triton{sep}compiler{sep}code_generator.py",
f"{sep}ast.py",
]

tb = e.__traceback__
Expand Down

0 comments on commit 3467f99

Please sign in to comment.