summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/xhr/resources/auth2/auth.py
blob: 568d31e90687f1442ea6253fd24a4aae78934171 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import os

from wptserve.utils import isomorphic_decode

from tools.wpt.utils import load_source

here = os.path.dirname(os.path.abspath(isomorphic_decode(__file__)))


def main(request, response):
    auth = load_source(u"", os.path.join(here,
                                             u"..",
                                             u"authentication.py"))
    return auth.main(request, response)