Skip to content

Instantly share code, notes, and snippets.

@ehermes
Created September 2, 2015 16:04
Show Gist options
  • Select an option

  • Save ehermes/7cc12628a41310874385 to your computer and use it in GitHub Desktop.

Select an option

Save ehermes/7cc12628a41310874385 to your computer and use it in GitHub Desktop.
if block:
call_viewer(command, filename)
else:
p = multiprocessing.Process(target=call_viewer, args=(command, filename))
p.start()
def call_viewer(command, filename):
subprocess.call([command, filename])
os.remove(filename)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment