

def make_zip_script(zip_dir, zip_basename, script_name, name_in_zip=None):
    zip_filename = ((zip_basename + os.extsep) + 'zip')
    zip_name = os.path.join(zip_dir, zip_basename)
    zip_file = zipfile.ZipFile(zip_name, 'w')
    if (name_in_zip is None):
        name_in_zip = os.path.basename(script_name)
    zip_file.write(script_name, name_in_zip)
    zip_file.close()
    return (zip_name, os.path.join(zip_name, name_in_zip))

dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/script_helper.py make_zip_script/VarMisuse@42/66 `zip_filename`->`zip_basename`