mirror of
https://github.com/alvierahman90/gronk.git
synced 2024-12-22 20:11:59 +00:00
start pandoc web server inside python process
This commit is contained in:
parent
48f64bf3d4
commit
80dce5d4ed
7
gronk.py
7
gronk.py
@ -505,7 +505,14 @@ def main(args):
|
||||
# TODO implement useful logging and debug printing
|
||||
|
||||
if __name__ == '__main__':
|
||||
pandoc_process = subprocess.Popen(["/usr/bin/pandoc-server"],
|
||||
stdout=subprocess.PIPE)
|
||||
time.sleep(1)
|
||||
print(pandoc_process.stdout)
|
||||
|
||||
try:
|
||||
sys.exit(main(get_args()))
|
||||
except KeyboardInterrupt:
|
||||
sys.exit(0)
|
||||
finally:
|
||||
pandoc_process.kill()
|
||||
|
Loading…
Reference in New Issue
Block a user