Skip to content

Commit ef0b347

Browse files
authored
Fix autoload namespace detection issues on Windows using os.path.sep (#107)
Uses platform-independent os.path.sep instead of hard-coded / character when getting autoload namespace. Fixes #106.
1 parent 2ce5d6c commit ef0b347

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vimdoc/module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ def Modules(directory):
491491

492492

493493
def GetAutoloadNamespace(filepath):
494-
return (os.path.splitext(filepath)[0]).replace('/', '#') + '#'
494+
return (os.path.splitext(filepath)[0]).replace(os.path.sep, '#') + '#'
495495

496496

497497
def GetMatchingStandalonePath(path, standalones):

0 commit comments

Comments
 (0)