Skip to content

Commit 3467f99

Browse files
authored
Use os.sep in filter_traceback function (#3322)
Signed-off-by: Anatoly Myachev <[email protected]>
1 parent ccf97fd commit 3467f99

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

python/triton/compiler/compiler.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,10 @@ def filter_traceback(e: BaseException):
190190
filter_traceback(e.__context__)
191191

192192
# If a user has a file that matches one of these, they're out of luck.
193+
sep = os.sep
193194
BAD_FILES = [
194-
"/triton/compiler/code_generator.py",
195-
"/ast.py",
195+
f"{sep}triton{sep}compiler{sep}code_generator.py",
196+
f"{sep}ast.py",
196197
]
197198

198199
tb = e.__traceback__

0 commit comments

Comments
 (0)