leesj-dev / classroom-notifier

Classroom Notifier aims to send automated notification emails when any post in a Google Classroom is edited or deleted.
1 stars 0 forks source link

Update execute.py #6

Closed museyooni closed 2 years ago

museyooni commented 2 years ago

Updated to execute this on linux. The main change is the location of the bash shell, on line 13

leesj-dev commented 2 years ago

Since this code is likely to run at cross platforms (Windows, Mac, Linux), I think it is better to go with

from sys import platform
if platform == "linux": # Linux
elif platform == "darwin": # Mac OS
elif platform == "win32": # Windows

Since Windows does not suppport .sh files natively and need to be run by .bat, I will search for other options including generating a .bat file on Windows — but for now, we will just stick on to Linux and Mac.

leesj-dev commented 2 years ago

Since I have updated execute.py to run at both Mac OS and Linux, this branch is no longer needed and I will delete this for now. If there are any problems regarding the code, inform me anytime.