We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9773445 commit e195897Copy full SHA for e195897
src/crate/testing/tests.py
@@ -21,18 +21,23 @@
21
# software solely pursuant to the terms of the relevant commercial agreement.
22
23
import os
24
+import pathlib
25
+import sys
26
import unittest
27
import doctest
28
import tempfile
29
from .test_layer import LayerUtilsTest
30
31
32
def docs_path(*parts):
- return os.path.abspath(
33
+ path = os.path.abspath(
34
os.path.join(
35
os.path.dirname(os.path.dirname(__file__)), *parts
36
)
37
38
+ if sys.platform == 'win32':
39
+ path = pathlib.PureWindowsPath(path).as_uri()
40
+ return path
41
42
43
def project_root(*parts):
0 commit comments