Skip to content

Commit 8593b6b

Browse files
committed
updating environ call
1 parent 0e97410 commit 8593b6b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Adafruit_LEDBackpack/email.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
DEBUG = 1
1010

11-
USERNAME = os.system("echo $ENAME") # just the part before the @ sign, add yours here
12-
PASSWORD = os.system("echo $EPASS")
11+
USERNAME = '"'+os.system("echo $ENAME")+'"' # just the part before the @ sign, add yours here
12+
PASSWORD = '"'+os.system("echo $EPASS")+'"'
1313

1414
NEWMAIL_OFFSET = 0 # my unread messages never goes to zero, yours might
1515
MAIL_CHECK_FREQ = 30 # check mail every 60 seconds
@@ -34,7 +34,7 @@
3434

3535
while True:
3636

37-
newmails = int(feedparser.parse("https://" + os.system("echo $ENAME") + ":" + os.system("echo $EPASS") +"@mail.google.com/gmail/feed/atom")["feed"]["fullcount"])
37+
newmails = int(feedparser.parse("https://" + USERNAME + ":" + PASSWORD +"@mail.google.com/gmail/feed/atom")["feed"]["fullcount"])
3838

3939
if DEBUG:
4040
print "You have", newmails, "new emails!"

0 commit comments

Comments
 (0)