Python check if exe is python interpreter code example
Example: python check if exe is running
import subprocess
s = subprocess.check_output('tasklist', shell=True)
if "cmd.exe" in s:
print s
import subprocess
s = subprocess.check_output('tasklist', shell=True)
if "cmd.exe" in s:
print s