Skip to content

Commit

Permalink
bug fix (set shell=False)
Browse files Browse the repository at this point in the history
  • Loading branch information
li-xin-yi committed Mar 31, 2021
1 parent 83028da commit ec95050
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
Binary file modified demo/big_news.pdf
Binary file not shown.
Binary file modified examples/reports/2_feature_select.pdf
Binary file not shown.
4 changes: 3 additions & 1 deletion hkjournalist/journalist.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ def report(self, output_file='./final_report.pdf', beamer=True, theme='default',
args_list += ['-o', final_file]

# command = f'pandoc {beamer_command} {raw_file} {tex_command} {args_list} -s -o {final_file}'
proc = subprocess.run(args_list, shell=True, capture_output=True)

# shell=True sometimes leads to invalid output
proc = subprocess.run(args_list,shell=False, capture_output=True)

if proc.returncode == 0:
print(f'Make a big news! The newest report is now in {final_file}')
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="hkjournalist",
version="0.0.7",
version="0.0.8",
author="Xinyi Li",
author_email="[email protected]",
description="Custom Auto Report Generator for Python Program",
Expand Down

0 comments on commit ec95050

Please sign in to comment.