Skip to content

Instantly share code, notes, and snippets.

@wkentaro
Created February 5, 2020 19:07
Show Gist options
  • Save wkentaro/10dfaf7ecbe78039e46529c8e65705e4 to your computer and use it in GitHub Desktop.
Save wkentaro/10dfaf7ecbe78039e46529c8e65705e4 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import time
import pyrep
pr = pyrep.PyRep()
with pyrep.backend.utils.suppress_std_out_and_err():
pr.launch(headless=True)
# with stdout_redirected():
# pr.launch(headless=True)
for i in range(5):
print(i)
time.sleep(1)
pr.shutdown()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment