Skip to content

Commit

Permalink
Handle '/' in Util.path_to_module no matter what OS is used
Browse files Browse the repository at this point in the history
  • Loading branch information
aobolensk committed Feb 17, 2024
1 parent 33711b4 commit ed608e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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] != '.':
Expand Down

0 comments on commit ed608e1

Please sign in to comment.