diff options
Diffstat (limited to 'service/pixelated')
-rw-r--r-- | service/pixelated/adapter/mail_service.py | 2 | ||||
-rw-r--r-- | service/pixelated/user_agent.py | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/service/pixelated/adapter/mail_service.py b/service/pixelated/adapter/mail_service.py index 822ea930..54deb488 100644 --- a/service/pixelated/adapter/mail_service.py +++ b/service/pixelated/adapter/mail_service.py @@ -33,7 +33,7 @@ class MailService: self.password = password self.server_name = server_name self.mailbox_name = 'INBOX' - self.certs_home = os.path.join(os.path.abspath("."), "pixelated", "certificates") + self.certs_home = os.path.abspath(os.path.join(os.path.abspath(__file__), "..", "..", "certificates")) self.tags = Tags() self._open_leap_session() except: diff --git a/service/pixelated/user_agent.py b/service/pixelated/user_agent.py index f780cad6..270ca265 100644 --- a/service/pixelated/user_agent.py +++ b/service/pixelated/user_agent.py @@ -28,7 +28,8 @@ from pixelated.adapter.mail_service import MailService from pixelated.adapter.pixelated_mail import PixelatedMail from pixelated.tags import Tags -app = Flask(__name__, static_url_path='', static_folder='../../web-ui/app') +static_folder = os.path.abspath(os.path.join(os.path.abspath(__file__), "..", "..", "web-ui", "app")) +app = Flask(__name__, static_url_path='', static_folder=static_folder) app.config.from_pyfile(os.path.join(os.environ['HOME'], '.pixelated')) mail_service = MailService(app.config['LEAP_USERNAME'], app.config['LEAP_PASSWORD'], app.config['LEAP_SERVER_NAME']) |