From de245796cbffc76096420ae2832e985be63a0b1f Mon Sep 17 00:00:00 2001 From: huangzhenpc Date: Wed, 5 Mar 2025 11:05:54 +0800 Subject: [PATCH] xf --- app/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/__init__.py b/app/__init__.py index 9cf92c0..c1a9043 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -2,10 +2,7 @@ from flask import Flask, request, jsonify, render_template from .config import Config from .utils import get_latest_emails, get_latest_email_with_code, add_allowed_domain, remove_allowed_domain, get_allowed_domains, get_allowed_domains_with_time import redis -import sys -import os -sys.path.append(os.path.dirname(os.path.dirname(__file__))) -from smtp_server import start_smtp_server +from .smtp_server import start_smtp_server import threading def create_app():