PauseExit=input()
This commit is contained in:
parent
6d70d08bdc
commit
c46dff6bcd
|
@ -20,7 +20,7 @@ if sys.version_info<(3,0):
|
||||||
print ("")
|
print ("")
|
||||||
print ("You need python 3.x to run this program.")
|
print ("You need python 3.x to run this program.")
|
||||||
print ("")
|
print ("")
|
||||||
exit(1)
|
exit()
|
||||||
|
|
||||||
#Function to clear screen
|
#Function to clear screen
|
||||||
def ClearScreen():
|
def ClearScreen():
|
||||||
|
@ -75,11 +75,13 @@ if os.path.isfile("ip2e.conf"):
|
||||||
print ("")
|
print ("")
|
||||||
print ("Test OK")
|
print ("Test OK")
|
||||||
print ("")
|
print ("")
|
||||||
|
PauseExit=input("Press ENTER to exit ")
|
||||||
except:
|
except:
|
||||||
print ("")
|
print ("")
|
||||||
print ("Failed to connect ("+SmtpFromEmail+")")
|
print ("Failed to connect ("+SmtpFromEmail+")")
|
||||||
print ("")
|
print ("")
|
||||||
exit(0)
|
PauseExit=input("Press ENTER to exit ")
|
||||||
|
exit()
|
||||||
|
|
||||||
#Set variables of 'ip2e.conf'
|
#Set variables of 'ip2e.conf'
|
||||||
ClearScreen()
|
ClearScreen()
|
||||||
|
@ -121,7 +123,7 @@ print ("")
|
||||||
TestConnection=input("[Default: y] Test connection with your configuration (y/n): ")
|
TestConnection=input("[Default: y] Test connection with your configuration (y/n): ")
|
||||||
if TestConnection == "n":
|
if TestConnection == "n":
|
||||||
print ("Exiting...")
|
print ("Exiting...")
|
||||||
exit(0)
|
exit()
|
||||||
else:
|
else:
|
||||||
exec(open("ip2e.conf").read())
|
exec(open("ip2e.conf").read())
|
||||||
#Import smtplib
|
#Import smtplib
|
||||||
|
@ -136,7 +138,9 @@ else:
|
||||||
print ("")
|
print ("")
|
||||||
print ("Test OK")
|
print ("Test OK")
|
||||||
print ("")
|
print ("")
|
||||||
|
PauseExit=input("Press ENTER to exit ")
|
||||||
except:
|
except:
|
||||||
print ("")
|
print ("")
|
||||||
print ("Failed to connect ("+SmtpFromEmail+")")
|
print ("Failed to connect ("+SmtpFromEmail+")")
|
||||||
print ("")
|
print ("")
|
||||||
|
PauseExit=input("Press ENTER to exit ")
|
||||||
|
|
|
@ -24,7 +24,7 @@ if sys.version_info<(3,0):
|
||||||
print ("")
|
print ("")
|
||||||
print ("You need python 3.x to run this program.")
|
print ("You need python 3.x to run this program.")
|
||||||
print ("")
|
print ("")
|
||||||
exit(1)
|
exit()
|
||||||
|
|
||||||
#Function to clear screen
|
#Function to clear screen
|
||||||
def ClearScreen():
|
def ClearScreen():
|
||||||
|
@ -63,7 +63,8 @@ else:
|
||||||
print ("")
|
print ("")
|
||||||
print ("You can create it if you run 'ip2e-config.py'")
|
print ("You can create it if you run 'ip2e-config.py'")
|
||||||
print ("")
|
print ("")
|
||||||
exit(0)
|
PauseExit=input("Press ENTER to exit ")
|
||||||
|
exit()
|
||||||
|
|
||||||
#Check if exists 'IP.log'
|
#Check if exists 'IP.log'
|
||||||
if os.path.isfile("IP.log"):
|
if os.path.isfile("IP.log"):
|
||||||
|
@ -101,7 +102,7 @@ try:
|
||||||
os.system("color 6")
|
os.system("color 6")
|
||||||
except:
|
except:
|
||||||
print ("Error importing native color scheme")
|
print ("Error importing native color scheme")
|
||||||
exit(1)
|
exit()
|
||||||
|
|
||||||
#Check if exists a previous log.file
|
#Check if exists a previous log.file
|
||||||
if os.path.isfile("ip2e.log"):
|
if os.path.isfile("ip2e.log"):
|
||||||
|
|
|
@ -20,7 +20,7 @@ if sys.version_info<(3,0):
|
||||||
print ("")
|
print ("")
|
||||||
print ("You need python 3.x to run this program.")
|
print ("You need python 3.x to run this program.")
|
||||||
print ("")
|
print ("")
|
||||||
exit(1)
|
exit()
|
||||||
|
|
||||||
#Function to clear screen
|
#Function to clear screen
|
||||||
def ClearScreen():
|
def ClearScreen():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user