File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 2727
2828Fix:
2929
30- - Notification not working when ` leeteasy ` is scheduled with cronjob
30+ - Notification not working when ` leeteasy ` is scheduled with cronjob
31+
32+ ## 1.0.2 (Alpha)
33+
34+ Fix:
35+
36+ - ` import pwd ` fix for windows.
Original file line number Diff line number Diff line change 11import os
2- import pwd
32import time as clock
3+ from sys import platform
44
55import click
66import schedule
@@ -54,5 +54,9 @@ def execute_root():
5454execute_root .add_command (execute_stop )
5555
5656if __name__ == '__main__' :
57- os .environ ['DBUS_SESSION_BUS_ADDRESS' ] = f'unix:path=/run/user/{ pwd .getpwuid (os .getuid ()).pw_uid } /bus'
57+ if platform != 'win32' :
58+ import pwd
59+
60+ os .environ [
61+ 'DBUS_SESSION_BUS_ADDRESS' ] = f'unix:path=/run/user/{ pwd .getpwuid (os .getuid ()).pw_uid } /bus' # NOQA: E501
5862 execute_root ()
Original file line number Diff line number Diff line change 11[metadata]
22name = leeteasy
3- version = 1.0.1
3+ version = 1.0.2
44author = Sudipto Baral
5566description = Desktop notification of easy daily challenge of leetcode.
You can’t perform that action at this time.
0 commit comments