def main(): # Make sure the args are the correct length if len(sys.argv) != 7: print "Incorrect amount of arguements" exit(0) validate_args(sys.argv) user = Kozo() if not Resources.auto_login(user, sys.argv[1], sys.argv[2]): print 'Username or password was incorrect' exit(0) buy(user, sys.argv)
def main(): # Make sure there is two args for the username and password if len(sys.argv) != 4: print "Incorrect amount of args. Need just order path, username and "+\ "password" exit() user = Kozo() if not Resources.auto_login(user, sys.argv[2], sys.argv[3]): print 'Username or password was incorrect' exit() tsl(sys.argv[1], user)