From 58237c0a2a029fafe025875410e32557c6a0e303 Mon Sep 17 00:00:00 2001 From: ectomancer <40387625+ectomancer@users.noreply.github.com> Date: Mon, 26 Nov 2018 22:20:58 +1100 Subject: [PATCH] Update clients.py --- diskcollections/clients.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/diskcollections/clients.py b/diskcollections/clients.py index 9656731..56b05fb 100644 --- a/diskcollections/clients.py +++ b/diskcollections/clients.py @@ -27,8 +27,9 @@ def __del__(self): def __get_file_path(self, key): directory_path = self.__directory.name - if 'SSD' in os.environ.keys(): - directory_path = os.environ['SSD'] + if os.name == 'nt': + if 'SSD' in os.environ.keys(): + directory_path = os.environ['SSD'] file_path = os.path.join(directory_path, key) return file_path