can share your script please?
Here you are:
import sys, os, lz4.block
isDecompress=True
op='1'
astcenc=os.path.join(os.path.abspath(os.path.dirname(__file__)),'etcpack','astcenc-sse2.exe')
def get():
   print('input your choise:\n\t1.deachieve_Z\n\t2.achieve_Z\n\t3.png_trans_astc\n\t4.astc_trans_png')
   s=input()
   global op
   if s in ['1','2','3','4','']:      
      if s=='':
         op='1'
      else:
         op=s
      #if s in ['1','']:
      #   isDecompress=False
      #else:
      #   isDecompress=True
   else:
      print('Inpurt error')
      get()
def get_path():   
   path=input('Please_input_the_path(don't_have_any_blankspace:')
   if os.path.isdir(path):
      pass
   else:
      print('Invalid_path'+path)
      get_path()
      return -1
   #print(os.getcwd())
   if op=='1':
      exts=['ddsz','pkmz','astcz']
   elif op=='2':
      exts=['dds','pkm','astc']
   elif op=='3':
      os.chdir(os.path.dirname(astcenc))
      exts=['png']
   elif op=='4':
      os.chdir(os.path.dirname(astcenc))
      exts=['astc']
   else:
      pass
   #input(os.getcwd())
   for root,dirs,files in os.walk(path):
      #for d in dirs:
      #   print(d)
      for fn in files:
         #print(os.path.join(root,fn),root,fn)
         ext=fn.split('.')[-1].lower()
         extLen=len(ext)
         #print(fn,exts,ext)
         if ext in exts:
            #print("1")
            p=os.path.join(root,fn)
            if op in ['1','2']:
               fi=open(p,'rb')
               data=fi.read()
               if op=='1':
                  print(p+'Deachieve...')
                  newData=lz4.block.decompress(data[4:])
                  fo=open(p[:-1],'wb')
                  fo.write(newData)
               else:
                  print(p+'Achieve...')
                  newData=lz4.block.compress(data)
                  newData0=(len(newData)+4).to_bytes(4, byteorder='little', signed=True)
                  fo=open(p+'z','wb')
                  fo.write(newData0)
                  fo.write(newData)
               fi.close()
               fo.close()
            elif op in ['3']:
               print('Transforming:'+p)
               os.system(' '.join([astcenc,'-cs',p,p[0:-3]+'astc','4x4','-exhaustive']))
            elif op in ['4']:
               print('Transforming:'+p)
               cmd=' '.join([astcenc,'-d',p,p[0:-4]+'png'])
               print(cmd)
               os.system(' '.join([astcenc,'-ds',p,p[0:-4]+'png']))               
get()
get_path()