diff --git a/src/utils/contacts/check_email_existence.py b/src/utils/contacts/check_email_existence.py index 3da26d9..0d4a0ef 100755 --- a/src/utils/contacts/check_email_existence.py +++ b/src/utils/contacts/check_email_existence.py @@ -1,4 +1,5 @@ import os +from pathlib import Path from src.db.mongo_manager import MONGO_STORE_MANAGER from src.utils.excel_reader import read_contacts @@ -20,7 +21,8 @@ def check_email_existence(file_path, mail_list): if __name__ == '__main__': mail_list = MONGO_STORE_MANAGER.get_destination_emails() - _folder_path = "/Users/panlei/Desktop/to_check" + _home = str(Path.home()) + _folder_path = _home + "/Desktop/to_check" # get files of a folder for file in os.listdir(_folder_path): if file.endswith(".xlsx"):