This freezes in some PyCharms
By: clayote | Date: Mar 18 2022 00:12 | Format: Python | Expires: never | Size: 306 B | Hits: 331
- import subprocess
- import sys
- p0 = subprocess.Popen(['xsel', '--version'], stdout=sys.stdout)
- p0.wait()
- p1 = subprocess.Popen(['uname', '-a'], stdout=sys.stdout)
- p1.wait()
- print("About to run xsel proper")
- p = subprocess.Popen(['xsel'], stdout=subprocess.PIPE)
- p.communicate()
- print("All done")
Latest pastes
56 minutes ago
10 hours ago
1 days ago
2 days ago
2 days ago