8000 Fixed GitLab CI project directory detection on Windows. (#216) · sajith/codecov-python@84048cd · GitHub
[go: up one dir, main page]

Skip to content

Commit 84048cd

Browse files
authored
Fixed GitLab CI project directory detection on Windows. (codecov#216)
1 parent 4ec70db commit 84048cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codecov/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ def main(*argv, **kwargs):
768768
commit=os.getenv("CI_BUILD_REF"),
769769
)
770770
)
771-
if os.getenv("CI_PROJECT_DIR", "").startswith("/"):
771+
if sys.platform == "win32" or os.getenv("CI_PROJECT_DIR", "").startswith("/"):
772772
root = os.getenv("CI_PROJECT_DIR")
773773
else:
774774
root = os.getenv("HOME") + "/" + os.getenv("CI_PROJECT_DIR", "")

0 commit comments

Comments
 (0)
0