Skip to content

Commit

Permalink
still the same stuff of loading ga python class #17
Browse files Browse the repository at this point in the history
  • Loading branch information
dmpe committed Dec 12, 2018
1 parent 6f6493e commit 71f3239
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion userMng/third_party_services/google_analytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ def initialize_analyticsreporting(self):
"""
SCOPES = ['https://www.googleapis.com/auth/analytics.readonly']
KEY_FILE_LOCATION = 'client_secrets.json'
fl = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(KEY_FILE_LOCATION)))
fl = os.path.abspath(os.path.join(os.path.dirname(__file__),KEY_FILE_LOCATION))
print(fl)

credentials = ServiceAccountCredentials.from_json_keyfile_name(self.KEY_FILE_LOCATION, self.SCOPES)

Expand Down

0 comments on commit 71f3239

Please sign in to comment.