From 98bd861a45437b1ade7e6b74f57e5c4f0812a8f6 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 15 Jul 2020 20:42:57 +0200 Subject: Change open_media.py to use PATH automedia instead of automedia.py --- open_media.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'open_media.py') diff --git a/open_media.py b/open_media.py index 588dc99..4abbd77 100755 --- a/open_media.py +++ b/open_media.py @@ -28,7 +28,7 @@ def sort_images(filename): return 0 def get_downloaded_list(): - process = subprocess.Popen([os.path.join(script_dir, "automedia.py"), "downloaded"], stdout=subprocess.PIPE) + process = subprocess.Popen(["automedia", "downloaded"], stdout=subprocess.PIPE) stdout, stderr = process.communicate() if process.returncode == 0: return stdout.decode().splitlines() -- cgit v1.2.3