From ed608e135165c93c91aeb07cd65d904361edcf77 Mon Sep 17 00:00:00 2001 From: Arseniy Obolenskiy Date: Sun, 18 Feb 2024 01:51:18 +0800 Subject: [PATCH] Handle '/' in Util.path_to_module no matter what OS is used --- src/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.py b/src/utils.py index a4ff1040..049ec9f4 100644 --- a/src/utils.py +++ b/src/utils.py @@ -95,7 +95,7 @@ def path_to_module(path: str) -> str: return '' result = '' for c in path: - if c not in (os.sep, '.'): + if c not in (os.sep, '/', '.'): result += c else: if result and result[-1] != '.':