Use os.getenv, not os.environ
This commit is contained in:
parent
1654cb62ac
commit
b3a0051a99
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user