Remove psutil dependency, and start using a lock file instead

This commit is contained in:
Micah Lee 2020-04-06 20:05:48 -07:00
parent 8955b2b6c6
commit d2517681af
4 changed files with 15 additions and 52 deletions

View file

@ -46,7 +46,10 @@ class GuiCommon:
# Start the Onion
self.onion = Onion(common)
# Directory to watch for events
# Lock filename
self.lock_filename = os.path.join(self.common.build_data_dir(), "lock")
# Events filenames
self.events_dir = os.path.join(self.common.build_data_dir(), "events")
if not os.path.exists(self.events_dir):
os.makedirs(self.events_dir, 0o700, True)