platform_external_selinux/sandbox/start
Petr Lautrbach 3b868abd2e Always use /usr/bin/python3 in Python scripts
Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
2019-02-20 16:43:27 +01:00

13 lines
249 B
Python

#!/usr/bin/python3 -Es
try:
from subprocess import getstatusoutput
except ImportError:
from commands import getstatusoutput
import sys
rc = [-1, '']
try:
rc = getstatusoutput(sys.argv[1])
except:
pass
if rc[0] == 0:
print(rc[1])