23
26
def readConfigFile(filename):
28
login, mdp = get_credentials()
30
login, mdp = echoDiagCredentials()
31
set_credentials(login, mdp)
32
#login = raw_input("Adress mail : ")
33
#passw = getpass.getpass("Pass : ")
25
34
if (os.path.isfile(filename) == True):
26
35
f = open(filename, 'r')
27
36
res.append(f.readline().strip())
28
res.append(f.readline().strip())
29
res.append(f.readline().strip())
31
38
else: # default configuration
32
39
lastupdate = rfc3339.rfc3339(datetime.datetime.now()-datetime.timedelta(minutes=4)).replace("+", "%2B")
33
41
res.append(lastupdate)
34
res.append(raw_input("Adress mail : "))
35
res.append(getpass.getpass("Pass : "))
50
"""Support for command line options"""
51
parser = optparse.OptionParser("gduntiy [OPTION]")
53
"-c", "--conf", action="store_true", dest="CONFIG", help="Show the config dialogs")
55
"-e", "--extract", dest="FORMAT", help="Extract the file to the given format (pdf)")
56
return parser.parse_args()
b'\\ No newline at end of file'