Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jelly Choi
authored and
Jelly Choi
committed
Dec 5, 2017
1 parent
5e715ab
commit 8aff095
Showing
4 changed files
with
31 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
import sys | ||
|
||
from pingdumb.conf import read_config, set_config, \ | ||
write_config, extract_password_with_argv | ||
from pingdumb.main_module import checker | ||
from pingdumb.smtp_module import smtp_login_with_conf_test | ||
|
||
|
||
def main(argv): | ||
|
||
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 = extract_password_with_argv(argv) | ||
conf = read_config() | ||
|
||
conf["smtpPw"] = s_pw | ||
smtp_login_with_conf_test(conf) | ||
|
||
checker(conf) | ||
|
||
if __name__ == "__main__": | ||
main(sys.argv[1:]) | ||
import sys | ||
|
||
from pingdumb.conf import read_config, set_config, \ | ||
write_config, extract_password_with_argv | ||
from pingdumb.main_module import checker | ||
from pingdumb.smtp_module import smtp_login_with_conf_test | ||
|
||
|
||
def main(argv): | ||
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 = extract_password_with_argv(argv) | ||
conf = read_config() | ||
|
||
conf["smtpPw"] = s_pw | ||
smtp_login_with_conf_test(conf) | ||
|
||
checker(conf) | ||
|
||
if __name__ == "__main__": | ||
main(sys.argv[1:]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters