-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
31 lines (21 loc) · 677 Bytes
/
test.py
File metadata and controls
31 lines (21 loc) · 677 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import imp
import os
### send emails with attachments using local keys ###
if os.name == 'posix': root = "/home/pi/"
elif os.name == 'nt': root = os.path.abspath(os.sep)
mykeys = imp.load_source('module.name', root+'pykeys.py')
print(mykeys.clients['david'])
server_mail_user = mykeys.ojeto_email_user
client_email_user = mykeys.clients['david']
from_email = 'davidandresleon@gmail.com'
if from_email in mykeys.clients.values():
print('yeah')
client_name = list(mykeys.clients.keys())[list(mykeys.clients.values()).index(from_email)]
print(type(client_name))
empty = []
def test ():
g = 5
empty.append(g)
print(empty)
test()
print(empty)