#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import sys

try:
    raw_input  # Python 2
    sys.exit('Please use Python 3 to run Wifiphisher.')
except NameError:
    pass  # Python 3

import logging
import os

from wifiphisher.pywifiphisher import run

root_logger = logging.getLogger()
root_logger.addHandler(logging.NullHandler())

dir_of_executable = os.path.dirname(__file__)
path_to_project_root = os.path.abspath(os.path.join(dir_of_executable, '..'))
sys.path.insert(0, path_to_project_root)
os.chdir(path_to_project_root)
run()
