# -*- coding: utf-8 -*-
from setuphelpers import *
import tarfile
import  glob

def install():

    if params.get("running_as_luti", False):
        remove_tree('/opt/wapt')

        t = glob.glob('*.tar.gz')[0]

        with tarfile.open(t, "r:gz") as tar:
            tar.extractall('/opt/wapt')