PauseExit=input()

This commit is contained in:
clamsawd 2015-11-15 16:42:14 +01:00
parent 6d70d08bdc
commit c46dff6bcd
3 changed files with 12 additions and 7 deletions

View File

@ -20,7 +20,7 @@ if sys.version_info<(3,0):
print ("")
print ("You need python 3.x to run this program.")
print ("")
exit(1)
exit()
#Function to clear screen
def ClearScreen():
@ -75,11 +75,13 @@ if os.path.isfile("ip2e.conf"):
print ("")
print ("Test OK")
print ("")
PauseExit=input("Press ENTER to exit ")
except:
print ("")
print ("Failed to connect ("+SmtpFromEmail+")")
print ("")
exit(0)
PauseExit=input("Press ENTER to exit ")
exit()
#Set variables of 'ip2e.conf'
ClearScreen()
@ -121,7 +123,7 @@ print ("")
TestConnection=input("[Default: y] Test connection with your configuration (y/n): ")
if TestConnection == "n":
print ("Exiting...")
exit(0)
exit()
else:
exec(open("ip2e.conf").read())
#Import smtplib
@ -136,7 +138,9 @@ else:
print ("")
print ("Test OK")
print ("")
PauseExit=input("Press ENTER to exit ")
except:
print ("")
print ("Failed to connect ("+SmtpFromEmail+")")
print ("")
PauseExit=input("Press ENTER to exit ")

View File

@ -24,7 +24,7 @@ if sys.version_info<(3,0):
print ("")
print ("You need python 3.x to run this program.")
print ("")
exit(1)
exit()
#Function to clear screen
def ClearScreen():
@ -63,7 +63,8 @@ else:
print ("")
print ("You can create it if you run 'ip2e-config.py'")
print ("")
exit(0)
PauseExit=input("Press ENTER to exit ")
exit()
#Check if exists 'IP.log'
if os.path.isfile("IP.log"):
@ -101,7 +102,7 @@ try:
os.system("color 6")
except:
print ("Error importing native color scheme")
exit(1)
exit()
#Check if exists a previous log.file
if os.path.isfile("ip2e.log"):

View File

@ -20,7 +20,7 @@ if sys.version_info<(3,0):
print ("")
print ("You need python 3.x to run this program.")
print ("")
exit(1)
exit()
#Function to clear screen
def ClearScreen():