We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 820245b commit 11fc658Copy full SHA for 11fc658
1 file changed
python/extractor/semmle/projectlayout.py
@@ -12,12 +12,16 @@
12
import re
13
from functools import total_ordering
14
import sys
15
+from pathlib import PureWindowsPath
16
+import os
17
18
def get_renamer(filename, logger):
19
layout = load(filename, logger)
20
def rename(path):
21
renamed = layout.artificial_path(path)
22
return path if renamed is None else renamed
23
+ if os.name == "nt":
24
+ return lambda path: rename(PureWindowsPath(path).as_posix())
25
return rename
26
27
def load(filename, logger):
0 commit comments