Use os.getenv, not os.environ

This commit is contained in:
Ogi Moore 2021-01-19 23:23:24 -08:00
parent 1654cb62ac
commit b3a0051a99

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')