diff options
Diffstat (limited to 'src/statistics/test_gnunet_statistics.py.in')
-rw-r--r-- | src/statistics/test_gnunet_statistics.py.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/statistics/test_gnunet_statistics.py.in b/src/statistics/test_gnunet_statistics.py.in index 8f6966b6f..96714cf9a 100644 --- a/src/statistics/test_gnunet_statistics.py.in +++ b/src/statistics/test_gnunet_statistics.py.in | |||
@@ -8,10 +8,10 @@ import subprocess | |||
8 | import time | 8 | import time |
9 | 9 | ||
10 | if os.name == "nt": | 10 | if os.name == "nt": |
11 | tmp = os.getenv ("TEMP") | 11 | tmp = os.getenv ("TEMP") |
12 | elif os.environ["TMPDIR"]: | 12 | elif None != os.environ.get("TMPDIR"): |
13 | tmp = os.getenv("TMPDIR") | 13 | tmp = os.getenv("TMPDIR") |
14 | elif os.environ["TMP"]: | 14 | elif None != os.environ.get("TMP"): |
15 | tmp = os.getenv("TMP") | 15 | tmp = os.getenv("TMP") |
16 | else: | 16 | else: |
17 | tmp = "/tmp" | 17 | tmp = "/tmp" |