Merge pull request #1504 from j9ac9k/use-getenv-correctly

Use os.getenv, not os.environ
This commit is contained in:
Ogi Moore 2021-01-19 23:35:58 -08:00 committed by GitHub
commit a142bd6217
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -469,7 +469,7 @@ def getTestDataRepo():
"""
global testDataTag
if os.environ["CI"]:
if os.getenv("CI"):
dataPath = os.path.join(os.environ["GITHUB_WORKSPACE"], '.pyqtgraph', 'test-data')
else:
dataPath = os.path.join(os.path.expanduser('~'), '.pyqtgraph', 'test-data')