Nerede hata var anlamıyorum
#!/usr/bin/env python

# -*- coding: UTF-8 -*-

import sys

import zlib

import os



from os import walk

f = []

path ="C:\\Users\\kullanıcı adı\\Desktop\\aa"



_xsign = "DHGAMES"

_key = "cxxwp5tcPIJ0x90r"



def _remove_header(str, sign):

return str[len(sign):]



def _add_header(str, sign):

return sign + str



if __name__== "__main__":

for dir, subdir, files in os.walk('scripts/'):

for file in files:

realfile = os.path.join(dir, file)

if realfile.endswith(".lua") :

fileout = realfile + "_"

with open(realfile, 'rb') as raw:

with open(fileout, 'wb') as output:

rawdata = raw.read()

output.write(zlib.decompress(rawdata))

#print file

#filein = sys.argv[1] + ".lua"

#fileout = sys.argv[1] + ".lua"

#with open(filein, 'rb') as raw:

# with open(fileout, 'wb') as output:

# print("WOW")

# rawdata = raw.read()

# output.write(zlib.decompress(rawdata))