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