We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce242bb commit 023eed9Copy full SHA for 023eed9
sphinx_needs/directives/needimport.py
@@ -2,6 +2,7 @@
2
3
import json
4
import os
5
+import posixpath
6
import re
7
from collections.abc import Sequence
8
from urllib.parse import urlparse
@@ -81,7 +82,7 @@ def run(self) -> Sequence[nodes.Node]:
81
82
else:
83
logger.info(f"Importing needs from {need_import_path}")
84
- if not os.path.isabs(need_import_path):
85
+ if not posixpath.isabs(need_import_path):
86
# Relative path should start from current rst file directory
87
curr_dir = os.path.dirname(self.docname)
88
new_need_import_path = os.path.join(
0 commit comments