Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions taskiq/abc/broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,10 @@ def inner(
fmodule = func.__module__
if fmodule == "__main__": # pragma: no cover
fmodule = ".".join(
remove_suffix(sys.argv[0], ".py").split(
os.path.sep,
),
remove_suffix(
os.path.normpath(sys.argv[0]),
".py",
).split(os.path.sep),
)
fname = func.__name__
if fname == "<lambda>":
Expand Down