diff --git a/rtv/oauth.py b/rtv/oauth.py index 4be1b2c..a61d918 100644 --- a/rtv/oauth.py +++ b/rtv/oauth.py @@ -16,6 +16,8 @@ oauth_state = None oauth_code = None oauth_error = None +template_path = os.path.join(os.path.dirname(__file__), 'templates') + class AuthHandler(web.RequestHandler): def get(self): @@ -44,7 +46,7 @@ class OAuthTool(object): # Initialize Tornado webapp 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, config.oauth_client_secret, diff --git a/setup.py b/setup.py index f3bc867..e9d33fb 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ import setuptools 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 if sys.version_info.major <= 2: