Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Commit

Permalink
Fixed GitLab CI project directory detection on Windows. (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoinvaz committed May 27, 2020
1 parent 4ec70db commit 84048cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codecov/__init__.py
Expand Up @@ -768,7 +768,7 @@ def main(*argv, **kwargs):
commit=os.getenv("CI_BUILD_REF"),
)
)
if os.getenv("CI_PROJECT_DIR", "").startswith("/"):
if sys.platform == "win32" or os.getenv("CI_PROJECT_DIR", "").startswith("/"):
root = os.getenv("CI_PROJECT_DIR")
else:
root = os.getenv("HOME") + "/" + os.getenv("CI_PROJECT_DIR", "")
Expand Down

0 comments on commit 84048cd

Please sign in to comment.