]> git.lyx.org Git - lyx.git/blobdiff - lib/scripts/tex_copy.py
Add a testcase for buffer-write-as
[lyx.git] / lib / scripts / tex_copy.py
index 42ac7a7c4bb7b78294d8f1d1e827523ae4b2d419..bb0cc68b72acff179150f2169059546e9b9befa8 100644 (file)
@@ -52,6 +52,10 @@ def main(argv):
     latex_file = argv[3]
     latex_base, latex_ext = os.path.splitext(latex_file)
 
+    # convert strings to bytes since we are using binary files
+    from_base = from_base.encode()
+    latex_base = latex_base.encode()
+
     # Read the input file and write the output file
     if(not os.path.isfile(abs_from_file)):
          error("%s is not a valid file.\n" % abs_from_file)