Skip to content

Commit 6c8c97d

Browse files
committed
Sanitise project path on windows for doc build
1 parent b0367f0 commit 6c8c97d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/scrape_images.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ class MachineScraper:
1313

1414
def __init__(self, project_root):
1515
self.project_root = project_root
16-
self.re_machine_module_name = re.compile(f"{self.project_root}/(.*).py$")
16+
sanitized_path = self.project_root.replace("\\", "\\\\")
17+
self.re_machine_module_name = re.compile(f"{sanitized_path}/(.*).py$")
1718
self.seen = set()
1819

1920
def __repr__(self):

0 commit comments

Comments
 (0)