Created
September 2, 2015 16:04
-
-
Save ehermes/7cc12628a41310874385 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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