X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fscripts%2Ftex_copy.py;h=bb0cc68b72acff179150f2169059546e9b9befa8;hb=48a5b16885255faecf70bdab771644be13fd7261;hp=224406840c34c0d0a2e3194fe32f7480247604c9;hpb=89bf17bfec3b294fbd54f1e5278a8f130c4c2308;p=lyx.git diff --git a/lib/scripts/tex_copy.py b/lib/scripts/tex_copy.py index 224406840c..bb0cc68b72 100644 --- a/lib/scripts/tex_copy.py +++ b/lib/scripts/tex_copy.py @@ -1,4 +1,3 @@ -#! /usr/bin/env python # -*- coding: utf-8 -*- # file tex_copy.py @@ -53,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)