# Instancia o arquivo Web e abre o Browser

import os
import sys

import webbrowser


#
# Methods
#

def is_python_3():
    if (sys.version_info > (3, 0)):
        return True
    else:
        return False


def getHTTPServerExecutable():
    if is_python_3():
        return "http.server"
    else:
        return "SimpleHTTPServer"


# get python executable
executable = sys.executable

webbrowser.open("http://localhost:8000/index.html")

# start http server
os.system(executable + " -m " + getHTTPServerExecutable())

bd33817c0afb9dffbe7f63ccc6825e0d41fc4520
<mask token>


def is_python_3():
    if sys.version_info > (3, 0):
        return True
    else:
        return False


def getHTTPServerExecutable():
    if is_python_3():
        return 'http.server'
    else:
        return 'SimpleHTTPServer'


<mask token>

<mask token>


def is_python_3():
    if sys.version_info > (3, 0):
        return True
    else:
        return False


def getHTTPServerExecutable():
    if is_python_3():
        return 'http.server'
    else:
        return 'SimpleHTTPServer'


<mask token>
webbrowser.open('http://localhost:8000/index.html')
os.system(executable + ' -m ' + getHTTPServerExecutable())

<mask token>


def is_python_3():
    if sys.version_info > (3, 0):
        return True
    else:
        return False


def getHTTPServerExecutable():
    if is_python_3():
        return 'http.server'
    else:
        return 'SimpleHTTPServer'


executable = sys.executable
webbrowser.open('http://localhost:8000/index.html')
os.system(executable + ' -m ' + getHTTPServerExecutable())

import os
import sys
import webbrowser


def is_python_3():
    if sys.version_info > (3, 0):
        return True
    else:
        return False


def getHTTPServerExecutable():
    if is_python_3():
        return 'http.server'
    else:
        return 'SimpleHTTPServer'


executable = sys.executable
webbrowser.open('http://localhost:8000/index.html')
os.system(executable + ' -m ' + getHTTPServerExecutable())

# Instancia o arquivo Web e abre o Browser

import os
import sys

import webbrowser


#
# Methods
#

def is_python_3():
    if (sys.version_info > (3, 0)):
        return True
    else:
        return False


def getHTTPServerExecutable():
    if is_python_3():
        return "http.server"
    else:
        return "SimpleHTTPServer"


# get python executable
executable = sys.executable

webbrowser.open("http://localhost:8000/index.html")

# start http server
os.system(executable + " -m " + getHTTPServerExecutable())
