summaryrefslogtreecommitdiffstats
path: root/linhes/linhes-system/myth_mtc.py
diff options
context:
space:
mode:
Diffstat (limited to 'linhes/linhes-system/myth_mtc.py')
-rwxr-xr-xlinhes/linhes-system/myth_mtc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/linhes/linhes-system/myth_mtc.py b/linhes/linhes-system/myth_mtc.py
index 953fb96..3cfbfb1 100755
--- a/linhes/linhes-system/myth_mtc.py
+++ b/linhes/linhes-system/myth_mtc.py
@@ -81,7 +81,7 @@ def cleanup_inuseprograms():
def bail_if_another_is_running():
cmd = shlex.split("pgrep -u {} -f {}".format(os.getuid(), __file__))
- pids = subprocess.check_output(cmd).strip().split('\n')
+ pids = subprocess.check_output(cmd).decode('utf-8').strip().split('\n')
if len(pids) > 1:
pids.remove("{}".format(os.getpid()))
print("Exiting! Found {} is already running (pids): {}".format(
@@ -100,7 +100,7 @@ def run_stuff():
print("No system idle check will be done.")
idle = 0
else:
- idle = subprocess.call(["/usr/bin/python2", "/usr/LH/bin/idle.py"])
+ idle = subprocess.call(["/usr/bin/python", "/usr/bin/idle.py"])
if not idle:
if ("--check_home" in sys.argv) or runall: