Skip to content

Commit

Permalink
fix absolute path refs
Browse files Browse the repository at this point in the history
  • Loading branch information
Skitionek committed Sep 13, 2023
1 parent 16e7428 commit fe03e52
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions appserver/neo4japp/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from datetime import timezone
from enum import Enum
from os import path

from werkzeug.local import LocalProxy

Expand Down Expand Up @@ -400,12 +401,22 @@ def is_db_name(s: str):
MESSAGE_SENDER_IDENTITY = '***ARANGO_DB_NAME***-account-service@***ARANGO_DB_NAME***.bio'
MAILING_API_KEY = LocalProxy(lambda: config.get('SEND_GRID_EMAIL_API_KEY'))
RESET_PASSWORD_EMAIL_TITLE = 'Lifelike: Account password reset'
RESET_PASS_MAIL_CONTENT = codecs.open(r'/home/n4j/assets/reset_email.html', 'r').read()
RESET_PASS_MAIL_CONTENT = codecs.open(
path.join(
path.realpath(path.dirname(__file__)),
r'../assets/reset_email.html'
),
'r'
).read()
COPYRIGHT_REPORT_CONFIRMATION_EMAIL_TITLE = (
'Lifelike: Copyright Infringement Report Confirmation'
)
COPYRIGHT_REPORT_CONFIRMATION_EMAIL_CONTENT = codecs.open(
r'/home/n4j/assets/copyright_report_confirmation.html', 'r'
path.join(
path.realpath(path.dirname(__file__)),
r'../assets/copyright_report_confirmation.html'
),
'r'
).read()

# Start shared Elastic constants
Expand Down

0 comments on commit fe03e52

Please sign in to comment.