diff options
author | Britney Fransen <brfransen@gmail.com> | 2023-02-12 04:53:27 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2023-02-12 04:53:27 (GMT) |
commit | e09439b06ef0ad8e3784b1a698596a561838a75c (patch) | |
tree | f01055b420aa8f2319424c5f62d626cd75b8df37 /linhes/linhes-system/myth_mtc.py | |
parent | 7f2c55e380f909b1d551340e3f174672de507cc3 (diff) | |
download | linhes_pkgbuild-e09439b06ef0ad8e3784b1a698596a561838a75c.zip linhes_pkgbuild-e09439b06ef0ad8e3784b1a698596a561838a75c.tar.gz linhes_pkgbuild-e09439b06ef0ad8e3784b1a698596a561838a75c.tar.bz2 |
linhes-system: add lh_myth_status.py
myth_mtc.py: fix some paths
myth2videos: initial inclusion
myth2mkv & myth2mp3: change /myth paths
Diffstat (limited to 'linhes/linhes-system/myth_mtc.py')
-rwxr-xr-x | linhes/linhes-system/myth_mtc.py | 4 |
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: |