From eff4e54c56cef3120a0ffda231b962880f279bda Mon Sep 17 00:00:00 2001 From: ectomancer <40387625+ectomancer@users.noreply.github.com> Date: Sat, 24 Nov 2018 07:33:01 +1100 Subject: [PATCH] Update clients.py create disk file on a different drive i.e. not on the SSD when SSD is True to use this option, add this to user program: import os os.putenv('SSD', dir_name) #replace dir_name with user directory i.e. 'D:\' --- diskcollections/clients.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/diskcollections/clients.py b/diskcollections/clients.py index b2a37dc..9656731 100644 --- a/diskcollections/clients.py +++ b/diskcollections/clients.py @@ -27,6 +27,8 @@ 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'] file_path = os.path.join(directory_path, key) return file_path