Skip to content

Commit dda086a

Browse files
committed
updating environ call
1 parent 8593b6b commit dda086a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Adafruit_LEDBackpack/email.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
from Adafruit_8x8 import ColorEightByEight
88

99
DEBUG = 1
10-
11-
USERNAME = '"'+os.system("echo $ENAME")+'"' # just the part before the @ sign, add yours here
12-
PASSWORD = '"'+os.system("echo $EPASS")+'"'
10+
os.system("echo $ENAME")
11+
os.system("echo $EPASS")
12+
USERNAME = os.environ["ENAME"] # just the part before the @ sign, add yours here
13+
PASSWORD = os.environ["EPASS"]
1314

1415
NEWMAIL_OFFSET = 0 # my unread messages never goes to zero, yours might
1516
MAIL_CHECK_FREQ = 30 # check mail every 60 seconds

0 commit comments

Comments
 (0)