From e621c8197c03a8e9a26e4be6347c39d30fd5518e Mon Sep 17 00:00:00 2001 From: Prohurtz <48768484+RedHawk989@users.noreply.github.com> Date: Sat, 1 Apr 2023 15:23:11 -0700 Subject: [PATCH] fix linux compatibility, add requests to poetry --- EyeTrackApp/eyetrackapp.py | 3 ++- pyproject.toml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/EyeTrackApp/eyetrackapp.py b/EyeTrackApp/eyetrackapp.py index 9eaead8..eb85dea 100644 --- a/EyeTrackApp/eyetrackapp.py +++ b/EyeTrackApp/eyetrackapp.py @@ -10,7 +10,8 @@ import threading import PySimpleGUI as sg import os import requests -from winotify import Notification +if is_nt: + from winotify import Notification os.system('color') # init ANSI color # Random environment variable to speed up webcam opening on the MSMF backend. diff --git a/pyproject.toml b/pyproject.toml index c3d8138..aad5638 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,6 +14,7 @@ numpy = "~1.23.5" pye3d = "^0.3.1.post1" pysimplegui = "^4.60.4" pydantic = "^1.10.2" +requests = "~2.2.8.2" winotify = [ { version = "^1.1.0", platform = 'win32' } ]