10-01-2017, 04:27 PM
import socket
import os
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
def restart_program():
python = sys.executable
os.execl(python, python, * sys.argv)
curdir = os.getcwd()
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
host = raw_input( "Site you want to find Ip:" )
ip = socket.gethostbyname( host )
print ("The ip is :")
print ("[" + ip + "]")
if __name__ == "__main__":
answer = raw_input("Do you want to search for another site's IP?")
if answer.strip() in "y Y yes Yes YES".split():
restart_program()
else:
os.system(curdir+"\Deq\main.py")
import os
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
def restart_program():
python = sys.executable
os.execl(python, python, * sys.argv)
curdir = os.getcwd()
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
host = raw_input( "Site you want to find Ip:" )
ip = socket.gethostbyname( host )
print ("The ip is :")
print ("[" + ip + "]")
if __name__ == "__main__":
answer = raw_input("Do you want to search for another site's IP?")
if answer.strip() in "y Y yes Yes YES".split():
restart_program()
else:
os.system(curdir+"\Deq\main.py")