Updated tornado to point to the correct template path.
This commit is contained in:
@@ -16,6 +16,8 @@ oauth_state = None
|
|||||||
oauth_code = None
|
oauth_code = None
|
||||||
oauth_error = None
|
oauth_error = None
|
||||||
|
|
||||||
|
template_path = os.path.join(os.path.dirname(__file__), 'templates')
|
||||||
|
|
||||||
class AuthHandler(web.RequestHandler):
|
class AuthHandler(web.RequestHandler):
|
||||||
|
|
||||||
def get(self):
|
def get(self):
|
||||||
@@ -44,7 +46,7 @@ class OAuthTool(object):
|
|||||||
|
|
||||||
# Initialize Tornado webapp
|
# Initialize Tornado webapp
|
||||||
routes = [('/', AuthHandler)]
|
routes = [('/', AuthHandler)]
|
||||||
self.callback_app = web.Application(routes, template_path='rtv/templates')
|
self.callback_app = web.Application(routes, template_path=template_path)
|
||||||
|
|
||||||
self.reddit.set_oauth_app_info(config.oauth_client_id,
|
self.reddit.set_oauth_app_info(config.oauth_client_id,
|
||||||
config.oauth_client_secret,
|
config.oauth_client_secret,
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -3,7 +3,7 @@ import setuptools
|
|||||||
|
|
||||||
from version import __version__ as version
|
from version import __version__ as version
|
||||||
|
|
||||||
requirements = ['tornado', 'praw>=3.1.0', 'six', 'requests', 'kitchen']
|
requirements = ['tornado', 'praw>=3.3.0', 'six', 'requests', 'kitchen']
|
||||||
|
|
||||||
# Python 2: add required concurrent.futures backport from Python 3.2
|
# Python 2: add required concurrent.futures backport from Python 3.2
|
||||||
if sys.version_info.major <= 2:
|
if sys.version_info.major <= 2:
|
||||||
|
|||||||
Reference in New Issue
Block a user