Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Copied file needs suffix
  • Loading branch information
kthoden committed May 14, 2019
1 parent cf0bc32 commit 7fef53a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion eoatex2pdf.py
Expand Up @@ -34,7 +34,7 @@ def main(
raise( Exception( "input file matching '*.tex' expected" ) )

output_dir = Path( output_dir )
fixed_file_path = output_dir / input_file.name
fixed_file_path = output_dir / input_file.with_suffix( ".tex" ).name
libeoaconvert.enable_preamble(
input_file = input_path,
output_file = fixed_file_path,
Expand Down
2 changes: 2 additions & 0 deletions utils/libeoaconvert.py
Expand Up @@ -30,6 +30,8 @@ def enable_preamble(
output_file,
pdf_or_xml
):
logging.debug(f"Enabling preamble {pdf_or_xml}. Input file is {input_file}, outputting to {output_file}")

with open( input_file, "r" ) as i:
with open( output_file, "w" ) as o:
if( pdf_or_xml == "pdf" ):
Expand Down

0 comments on commit 7fef53a

Please sign in to comment.