You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with open(".".join(filename.split('.')[:-1]) + "_encoded.txt", "wb") as out_file: # weird file_path manipulations are for cutting of file extensions but with extra coution in case if filename contains extra dots
out_file.write(res)
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("filename", help="Path to the translation file to encode.")