Skip to content

Commit

Permalink
web: fix web_launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
borisfaure committed Feb 21, 2010
1 parent ccdb02c commit b2b4d03
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions web_launcher.py
@@ -1,6 +1,17 @@
#!/usr/bin/env python

import web

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


Expand All @@ -20,6 +31,13 @@ def POST(self):
except Exception:
return web.badrequest("")

options = optparse.Option()
options.front_end = "web"
options.account = u
options.password = p
options.auto_login = True
aMSNCore(options)




Expand Down

0 comments on commit b2b4d03

Please sign in to comment.