diff options
author | gcurse | 2020-07-23 11:18:55 +0200 |
---|---|---|
committer | gcurse | 2020-07-23 11:18:55 +0200 |
commit | 1f0432bdf1452f69440d3e04436471202fcaa5e6 (patch) | |
tree | 9bf2be247bd385bd0f4c434147c9c2191423238f /otrverwaltung3p_actions_cutvirtualdub.diff | |
parent | 96843074cb06eef760d292da15c8611617b14e29 (diff) | |
download | aur-1f0432bdf1452f69440d3e04436471202fcaa5e6.tar.gz |
Updates version, adds patch
Diffstat (limited to 'otrverwaltung3p_actions_cutvirtualdub.diff')
-rw-r--r-- | otrverwaltung3p_actions_cutvirtualdub.diff | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/otrverwaltung3p_actions_cutvirtualdub.diff b/otrverwaltung3p_actions_cutvirtualdub.diff new file mode 100644 index 000000000000..951e2b4b7355 --- /dev/null +++ b/otrverwaltung3p_actions_cutvirtualdub.diff @@ -0,0 +1,28 @@ +--- otr-verwaltung3p-1.0.0b8.post1/otrverwaltung3p/actions/cutvirtualdub.py 2020-07-23 08:03:38.000000000 +0200 ++++ otr-verwaltung3p-1.0.0b8.post1/otrverwaltung3p/actions/cutvirtualdub_b.py 2020-07-23 11:03:57.181021042 +0200 +@@ -16,6 +16,7 @@ + # END LICENSE + + import os ++import shutil + import subprocess + import time + +@@ -64,13 +65,10 @@ + return None, error + + # find wine +- def cmd_exists(x): +- any(os.access(os.path.join(pathx, x), os.X_OK) for pathx in os.environ["PATH"].split(os.pathsep)) +- +- if cmd_exists("wineconsole"): +- winecommand = "wineconsole" +- elif cmd_exists("wine"): +- winecommand = "wine" ++ if shutil.which("wineconsole"): ++ winecommand = shutil.which("wineconsole") ++ elif shutil.which("wine"): ++ winecommand = shutil.which("wine") + else: + return None, "Wine konnte nicht aufgerufen werden." + |