We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1482e3b commit 967cb92Copy full SHA for 967cb92
1 file changed
taskiq/abc/broker.py
@@ -318,9 +318,10 @@ def inner(
318
fmodule = func.__module__
319
if fmodule == "__main__": # pragma: no cover
320
fmodule = ".".join(
321
- remove_suffix(sys.argv[0], ".py").split(
322
- os.path.sep,
323
- ),
+ remove_suffix(
+ os.path.normpath(sys.argv[0]),
+ ".py",
324
+ ).split(os.path.sep),
325
)
326
fname = func.__name__
327
if fname == "<lambda>":
0 commit comments