summaryrefslogtreecommitdiff
path: root/modules/config.py
diff options
context:
space:
mode:
authorJan Rękorajski2021-01-16 19:48:57 (GMT)
committerJan Rękorajski2021-01-16 19:48:57 (GMT)
commit16b37c0d83e07e3008251e41dee9093ce92efa1a (patch)
tree441ab3c613ae9f30cd9537b87892aae49730b149 /modules/config.py
parent9c170c6153b10298811a5de004899f912d8b1e4d (diff)
downloadpld-ftp-admin-16b37c0d83e07e3008251e41dee9093ce92efa1a.zip
pld-ftp-admin-16b37c0d83e07e3008251e41dee9093ce92efa1a.tar.gz
Fix os.environ checks (python3 compat)
Diffstat (limited to 'modules/config.py')
-rw-r--r--modules/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/config.py b/modules/config.py
index ee32dfa..0836555 100644
--- a/modules/config.py
+++ b/modules/config.py
@@ -4,7 +4,7 @@ import string, os
value = {}
-if os.environ.has_key('HOME'):
+if 'HOME' in os.environ:
path = os.environ['HOME']
else:
path = '../../' # cgi-bin interface