drf / amsn2

The new version of aMSN client

This URL has Read+Write access

billiob (author)
Mon Jun 29 11:49:19 -0700 2009
commit  ead8f981aa643710afefda2876a287461e1cbb26
tree    02d9efa4b4d1845c33bcec3f443463f19e426b6b
parent  829320c4608308a1cf84fb25b87d26f466ab38a8
amsn2 / amsn2.py
100755 32 lines (25 sloc) 1.0 kb
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
32
#!/usr/bin/env python
import sys
import os
import optparse
os.chdir(os.path.dirname(os.path.abspath(sys.argv[0])))
sys.path.insert(0, "./papyon")
import locale
locale.setlocale(locale.LC_ALL, '')
 
from amsn2.core import aMSNCore
 
if __name__ == '__main__':
    account = None
    passwd = None
    default_front_end = "gtk"
 
    parser = optparse.OptionParser()
    parser.add_option("-a", "--account", dest="account",
                      default=None, help="The account's username to use")
    parser.add_option("-p", "--password", dest="password",
                      default=None, help="The account's password to use")
    parser.add_option("-f", "--front-end", dest="front_end",
                      default=default_front_end, help="The frontend to use")
    parser.add_option("-d", "--debug", action="store_true", dest="debug",
                      default=False, help="Show protocol debug")
    (options, args) = parser.parse_args()
    
    amsn = aMSNCore(options)
    
    amsn.run()