To take Joe's comment into account, you might want to check the process command line:
if psutil.pid_exists(pid) and 'run_utah_test.py' in '.join(psutil.Process(pid).cmdline): <machine is being used>
utah already depends on psutil, so this won't add an extra dependency to the package.
« Back to merge proposal
To take Joe's comment into account, you might want to check the process command line:
if psutil. pid_exists( pid) and 'run_utah_test.py' in '.join( psutil. Process( pid).cmdline) :
<machine is being used>
utah already depends on psutil, so this won't add an extra dependency to the package.