From b2b4d03f5dff5f26c32309a2e91f3d42762e18f0 Mon Sep 17 00:00:00 2001 From: Boris 'billiob' Faure Date: Sun, 21 Feb 2010 18:29:18 +0100 Subject: [PATCH] web: fix web_launcher --- web_launcher.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/web_launcher.py b/web_launcher.py index 2cd26e4a..9905c3a2 100644 --- a/web_launcher.py +++ b/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 @@ -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) +