Skip to content

Commit

Permalink
remove chrt since not available on all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
tamara-schmitz committed Aug 3, 2023
1 parent d662bfe commit 6786839
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
11 changes: 1 addition & 10 deletions manga/imagesToPdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,7 @@ def exec_cmd(cmd, output=None):
if args.v:
print(" Executing command: {}".format(cmd))
return subprocess.run(cmd, shell=False, stdout=output, stderr=subprocess.STDOUT, startupinfo=si)
elif sys.platform == 'linux':
cmd.insert(0, "chrt")
cmd.insert(1, "-b")
cmd.insert(2, "0")
cmd.insert(3, "nice")
cmd.insert(4, "-n19")
if args.v:
print(" Executing command: {}".format(cmd))
return subprocess.run(cmd, shell=False, stdout=output, stderr=subprocess.STDOUT)
elif sys.platform == 'darwin':
elif sys.platform == 'linux' or sys.platform == 'darwin':
cmd.insert(0, "nice")
cmd.insert(1, "-n19")
if args.v:
Expand Down
11 changes: 1 addition & 10 deletions music/musicbatchconverter.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,7 @@ def exec_cmd(cmd, output=None):
if args.v:
print(" Executing command: {}".format(cmd))
return subprocess.run(cmd, shell=False, stdout=output, stderr=subprocess.STDOUT, startupinfo=si)
elif sys.platform == 'linux':
cmd.insert(0, "chrt")
cmd.insert(1, "-b")
cmd.insert(2, "0")
cmd.insert(3, "nice")
cmd.insert(4, "-n19")
if args.v:
print(" Executing command: {}".format(cmd))
return subprocess.run(cmd, shell=False, stdout=output, stderr=subprocess.STDOUT)
elif sys.platform == 'darwin':
elif sys.platform == 'linux' or sys.platform == 'darwin':
cmd.insert(0, "nice")
cmd.insert(1, "-n19")
if args.v:
Expand Down

0 comments on commit 6786839

Please sign in to comment.