Skip to content

Commit

Permalink
close files
Browse files Browse the repository at this point in the history
  • Loading branch information
chriddyp committed Sep 20, 2017
1 parent e3894e9 commit fb580d6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions dash_auth/plotly_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ def __init__(self, app, app_name, sharing, app_url):
_current_path = os.path.dirname(os.path.abspath(__file__))

# TODO - Dist files
self.oauth_redirect_bundle = open(os.path.join(
_current_path, 'oauth-redirect.js')).read()
self.login_bundle = open(
os.path.join(_current_path, 'login.js')).read()
with open(os.path.join(_current_path, 'oauth-redirect.js'), 'r') as f:
self.oauth_redirect_bundle = f.read()

with open(os.path.join(_current_path, 'login.js'), 'r') as f:
self.login_bundle = f.read()

def create_access_codes(self):
token = SeaSurf()._generate_token()
Expand Down

0 comments on commit fb580d6

Please sign in to comment.