import sys

from smtp_module import smtp_login_with_conf_test
from main_module import checker
from conf import set_config, write_config


if __name__ == "__main__":

    if len(sys.argv) == 1:
        conf = set_config()
        s_pw = conf["smtpPw"]
        write_config(conf)
    else:
        """if exist argv, set password and execute with default configure"""
        s_pw = sys.argv[1]

    conf["smtpPw"] = s_pw
    smtp_login_with_conf_test(conf)

    checker(conf)

@@ -132,16 +132,29 @@
 e_config
+, read_config
 %0D%0A%0D%0A%0D%0Aif
@@ -386,16 +386,46 @@
 ure%22%22%22%0D%0A
+        conf = read_config()%0D%0A
         
@@ -444,16 +444,24 @@
 rgv%5B1%5D%0D%0A
+        
 %0D%0A    co

update with argv